Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix color loading for saltkey api calls

  • Loading branch information...
commit 393e84924d59826789b6c898658267bfcfb8e8f2 1 parent f3c7b5b
Thomas S Hatch thatch45 authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 salt/cli/key.py
4 salt/cli/key.py
@@ -20,7 +20,9 @@ class Key(object):
20 20 '''
21 21 def __init__(self, opts):
22 22 self.opts = opts
23   - self.colors = salt.utils.get_colors(not bool(self.opts['no_color']))
  23 + self.colors = salt.utils.get_colors(
  24 + not bool(self.opts.get('no_color', False))
  25 + )
24 26
25 27 def _keys(self, key_type, full_path=False):
26 28 '''

0 comments on commit 393e849

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