mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix cmd_async to be just async
This commit is contained in:
parent
ab8cc9b5fa
commit
cef8320a7a
@ -2005,17 +2005,14 @@ class ClearFuncs(object):
|
||||
'''
|
||||
authorize = salt.auth.Authorize(self.opts, clear_load, self.loadauth)
|
||||
if not authorize.rights('cloud', clear_load):
|
||||
return False
|
||||
try:
|
||||
cloud_client = salt.cloud.CloudClient(
|
||||
os.path.join(
|
||||
os.path.dirname(self.opts['conf_file']), 'cloud'
|
||||
)
|
||||
)
|
||||
fun = clear_load.pop('fun')
|
||||
return cloud_client.cmd_async(fun, clear_load)
|
||||
except Exception:
|
||||
return ''
|
||||
cloud_client = salt.cloud.CloudClient(
|
||||
os.path.join(
|
||||
os.path.dirname(self.opts['conf_file']), 'cloud'
|
||||
)
|
||||
)
|
||||
fun = clear_load.pop('fun')
|
||||
return cloud_client.async(fun, clear_load)
|
||||
|
||||
def runner(self, clear_load):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user