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:
Ari 2013-05-11 20:12:26 -06:00
parent 6728074ad8
commit 59e9c5a592

View File

@ -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):
''' '''