Skip to content

Commit

Permalink
Incorporated fix for ERB to String conversion error
Browse files Browse the repository at this point in the history
Reference forward3d#81
  • Loading branch information
Sean Smith committed Jul 12, 2018
1 parent 8c09241 commit 5860465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cap-ec2/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def load_config

config_location = File.expand_path(fetch(:ec2_config), Dir.pwd) if fetch(:ec2_config)
if config_location && File.exists?(config_location)
config = YAML.load(ERB.new(File.read(fetch(:ec2_config))))
config = YAML.load(ERB.new(File.read(fetch(:ec2_config))).result)
if config
set :ec2_project_tag, config['project_tag'] if config['project_tag']
set :ec2_roles_tag, config['roles_tag'] if config['roles_tag']
Expand Down

0 comments on commit 5860465

Please sign in to comment.