mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix KeyError in the query process
This commit is contained in:
parent
5bcb74d6a1
commit
e735a143f7
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Reference in a new issue