Strip final 'e' in key cmd to correct "deleteed" misspelling

Fixes #38231
This commit is contained in:
rallytime 2016-12-13 09:32:19 -07:00
parent 7ead1ed336
commit 26e1ee3650

View File

@ -244,7 +244,7 @@ class KeyCLI(object):
if not ret:
self._print_no_match(cmd, self.opts['match'])
return
print('The following keys are going to be {0}ed:'.format(cmd))
print('The following keys are going to be {0}ed:'.format(cmd.rstrip('e')))
salt.output.display_output(ret, 'key', opts=self.opts)
if not self.opts.get('yes', False):