Fix KeyError in the query process

This commit is contained in:
Thomas S Hatch 2011-03-14 12:41:35 -06:00
parent 5bcb74d6a1
commit e735a143f7

View file

@ -73,7 +73,7 @@ class SaltCMD(object):
Execute the salt command line
'''
local = salt.client.LocalClient()
if self.opts['query']:
if self.opts.has_key('query'):
print local.find_cmd(self.opts['cmd'])
else:
args = [self.opts['tgt'],