lib/cloudstack_client/configuration.rb in cloudstack_client-1.5.2 vs lib/cloudstack_client/configuration.rb in cloudstack_client-1.5.3
- old
+ new
@@ -18,10 +18,10 @@
message += "\nBacktrace:\n\t#{e.backtrace.join("\n\t")}"
end
raise ConfigurationError, message
end
- if env ||= config[:default]
+ if env = configuration[:env] || config[:default]
unless config = config[env]
raise ConfigurationError, "Can't find environment #{env}."
end
end