We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d394eb commit 7af3da1Copy full SHA for 7af3da1
lib/cap-ec2/utils.rb
@@ -2,7 +2,6 @@
2
3
module CapEC2
4
module Utils
5
-
6
module Server
7
def ec2_tags
8
id = self.properties.fetch(:aws_instance_id)
@@ -56,7 +55,7 @@ def load_config
56
55
57
config_location = File.expand_path(fetch(:ec2_config), Dir.pwd) if fetch(:ec2_config)
58
if config_location && File.exists?(config_location)
59
- config = YAML.load(ERB.new(File.read(fetch(:ec2_config))))
+ config = YAML.load(ERB.new(File.read(fetch(:ec2_config))).result)
60
if config
61
set :ec2_project_tag, config['project_tag'] if config['project_tag']
62
set :ec2_roles_tag, config['roles_tag'] if config['roles_tag']
0 commit comments