Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug undefined local variable or method account_meta_key

  • Loading branch information...
commit 1496041c699aaa561b770ef5c2cc3e53c6a7febd 1 parent ea6827c
@enterprise-rails enterprise-rails authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fog/hp/storage.rb
View
2  lib/fog/hp/storage.rb
@@ -182,7 +182,7 @@ def generate_object_temp_url(container, object, expires_secs, method)
# Only works with 1.9+ Not compatible with 1.8.7
# signed_string = Digest::HMAC.hexdigest(string_to_sign, @hp_secret_key, Digest::SHA1)
# Compatible with 1.8.7 onwards
- hmac = OpenSSL::HMAC.new(account_meta_key, OpenSSL::Digest::SHA1.new)
+ hmac = OpenSSL::HMAC.new(@hp_account_meta_key, OpenSSL::Digest::SHA1.new)
signed_string = hmac.update(string_to_sign).hexdigest
signature = @hp_tenant_id.to_s + ":" + @hp_access_key.to_s + ":" + signed_string
signature = Fog::HP.escape(signature)
Please sign in to comment.
Something went wrong with that request. Please try again.