mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Updated key.py to fix
This fixed bug #4989 where delete was not deleting the key when `--yes` was passed
This commit is contained in:
parent
6728074ad8
commit
59e9c5a592
@ -104,6 +104,13 @@ class KeyCLI(object):
|
|||||||
raise SystemExit("\nExiting on CTRL-c")
|
raise SystemExit("\nExiting on CTRL-c")
|
||||||
if veri.lower().startswith('y'):
|
if veri.lower().startswith('y'):
|
||||||
self.key.delete_key(match)
|
self.key.delete_key(match)
|
||||||
|
else:
|
||||||
|
print('Deleting the following keys:')
|
||||||
|
salt.output.display_output(
|
||||||
|
matches,
|
||||||
|
'key',
|
||||||
|
self.opts)
|
||||||
|
self.key.delete_key(match)
|
||||||
|
|
||||||
def delete_all(self):
|
def delete_all(self):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user