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

This commit is contained in:
Caleb Tennis 2011-02-28 03:08:56 +08:00 committed by Wesley Beary
parent 89de6ba31c
commit 53897b30c3
1 changed files with 2 additions and 0 deletions

View File

@ -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 @@ module Fog
# @return [String] The new path for credentials file
def self.credentials_path=(new_credentials_path)
@credentials = nil
@credential_path = new_credentials_path
end