bin/kumogata in kumogata-0.5.7 vs bin/kumogata in kumogata-0.5.8
- old
+ new
@@ -33,10 +33,10 @@
if File.exist?(options.config_path) and File.readable?(options.config_path)
ini = AWS::Core::IniParser.parse(File.read(options.config_path))
profile = options.config_profile || 'default'
profile = "profile #{profile}" unless profile == 'default'
- region = ini[profile]['region']
+ region = (ini[profile] || {})['region']
aws_opts[:region] = region if region
end
[:access_key_id, :secret_access_key, :region].each do |key|
aws_opts[key] = options[key] if options[key]