diff --git a/lib/fog/core/attributes.rb b/lib/fog/core/attributes.rb index 0a4b7ca4c..dd651dc86 100644 --- a/lib/fog/core/attributes.rb +++ b/lib/fog/core/attributes.rb @@ -71,8 +71,8 @@ module Fog class_eval <<-EOS, __FILE__, __LINE__ def #{name}=(new_data) if new_data.is_a?(Hash) - if new_data.has_key?(:#{squash}) - attributes[:#{name}] = new_data[:#{squash}] + if new_data.has_key?(:'#{squash}') + attributes[:#{name}] = new_data[:'#{squash}'] elsif new_data.has_key?("#{squash}") attributes[:#{name}] = new_data["#{squash}"] else