Merge pull request #38232 from rallytime/fix-38231

Strip final 'e' in key cmd to correct "deleteed" misspelling
This commit is contained in:
Mike Place 2016-12-15 03:38:48 -07:00 committed by GitHub
commit 0af343e71f

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