Update the removal of the key to use the corrected key_file var.

This commit is contained in:
Justin Head 2014-04-16 15:17:08 -05:00
parent fe770f6805
commit 83d1297225

View File

@ -910,7 +910,7 @@ class Cloud(object):
if os.path.isfile(key_file) and not globbed_key_file:
# Single key entry. Remove it!
salt.utils.cloud.remove_key(self.opts['pki_dir'], name)
salt.utils.cloud.remove_key(self.opts['pki_dir'], os.path.basename(key_file))
continue
if not os.path.isfile(key_file) and globbed_key_file: