From 5860465d580bb4f6231fef76dededfde3b910edc Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Thu, 12 Jul 2018 16:05:03 -0400 Subject: [PATCH] Incorporated fix for ERB to String conversion error Reference forward3d/cap-ec2#81 --- lib/cap-ec2/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cap-ec2/utils.rb b/lib/cap-ec2/utils.rb index 2c7a38d..8ce920e 100644 --- a/lib/cap-ec2/utils.rb +++ b/lib/cap-ec2/utils.rb @@ -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']