Skip to content
Browse files

Fix color loading for saltkey api calls

  • Loading branch information...
1 parent f3c7b5b commit 393e84924d59826789b6c898658267bfcfb8e8f2 @thatch45 thatch45 committed Jun 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 salt/cli/key.py
View
4 salt/cli/key.py
@@ -20,7 +20,9 @@ class Key(object):
'''
def __init__(self, opts):
self.opts = opts
- self.colors = salt.utils.get_colors(not bool(self.opts['no_color']))
+ self.colors = salt.utils.get_colors(
+ not bool(self.opts.get('no_color', False))
+ )
def _keys(self, key_type, full_path=False):
'''

0 comments on commit 393e849

Please sign in to comment.
Something went wrong with that request. Please try again.