Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[core] Reset the credentials if we change the path or the symbol

  • Loading branch information...
commit 53897b30c34e3a2285fceedc5c5ff3f5edde346f 1 parent 89de6ba
@ctennis ctennis authored Wesley Beary committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/fog/core/credentials.rb
View
2  lib/fog/core/credentials.rb
@@ -7,6 +7,7 @@ module Fog
# @param [String, Symbol] new_credential name of new credential to use
# @ return [String, Symbol] name of the new credential
def self.credential=(new_credential)
+ @credentials = nil
@credential = new_credential
end
@@ -22,6 +23,7 @@ def self.credentials_path
# @return [String] The new path for credentials file
def self.credentials_path=(new_credentials_path)
+ @credentials = nil
@credential_path = new_credentials_path
end
Please sign in to comment.
Something went wrong with that request. Please try again.