mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update the removal of the key to use the corrected key_file var.
This commit is contained in:
parent
fe770f6805
commit
83d1297225
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user