From 53897b30c34e3a2285fceedc5c5ff3f5edde346f Mon Sep 17 00:00:00 2001 From: Caleb Tennis Date: Mon, 28 Feb 2011 03:08:56 +0800 Subject: [PATCH] [core] Reset the credentials if we change the path or the symbol --- lib/fog/core/credentials.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/core/credentials.rb b/lib/fog/core/credentials.rb index 59d091bc4..016f06994 100644 --- a/lib/fog/core/credentials.rb +++ b/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 @@ 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