mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make the pcre stuff work
This commit is contained in:
parent
e5387b07f8
commit
ec6672168d
2 changed files with 7 additions and 3 deletions
|
@ -56,8 +56,12 @@ class SaltCMD(object):
|
|||
Execute the salt command line
|
||||
'''
|
||||
local = salt.client.LocalClient()
|
||||
print local.cmd(self.opts['tgt'],
|
||||
args = [self.opts['tgt'],
|
||||
self.opts['fun'],
|
||||
self.opts['arg'],
|
||||
self.opts['timeout'])
|
||||
self.opts['timeout'],
|
||||
]
|
||||
if self.opts['pcre']:
|
||||
args.append('pcre')
|
||||
print local.cmd(*args)
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ class LocalClient(object):
|
|||
except:
|
||||
raise SaltClientError('Failed to read in the salt root key')
|
||||
|
||||
def cmd(self, tgt, fun, arg=(), expr_form='glob', timeout=5):
|
||||
def cmd(self, tgt, fun, arg=(), timeout=5, expr_form='glob'):
|
||||
'''
|
||||
Execute a salt command and return.
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue