diff --git a/lib/fog/cloudstack.rb b/lib/fog/cloudstack.rb index b426fb246..2763e0d9a 100644 --- a/lib/fog/cloudstack.rb +++ b/lib/fog/cloudstack.rb @@ -8,7 +8,7 @@ module Fog service(:compute, 'cloudstack/compute','Compute') - @@digest = OpenSSL::Digest::Digest.new('sha1') + @@digest = OpenSSL::Digest.new('sha1') def self.escape(string) string = CGI::escape(string) diff --git a/lib/fog/core/hmac.rb b/lib/fog/core/hmac.rb index 8051947f1..292dc8cb4 100644 --- a/lib/fog/core/hmac.rb +++ b/lib/fog/core/hmac.rb @@ -18,7 +18,7 @@ module Fog private def setup_sha1 - @digest = OpenSSL::Digest::Digest.new('sha1') + @digest = OpenSSL::Digest.new('sha1') @signer = lambda do |data| OpenSSL::HMAC.digest(@digest, @key, data) end @@ -26,7 +26,7 @@ module Fog def setup_sha256 begin - @digest = OpenSSL::Digest::Digest.new('sha256') + @digest = OpenSSL::Digest.new('sha256') @signer = lambda do |data| OpenSSL::HMAC.digest(@digest, @key, data) end @@ -45,4 +45,4 @@ module Fog end end -end \ No newline at end of file +end