mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
what was I thinking?
This commit is contained in:
parent
fae3f3ca83
commit
a615e5a876
1 changed files with 5 additions and 4 deletions
|
@ -110,14 +110,15 @@ def ping():
|
|||
|
||||
salt '*' test.ping
|
||||
'''
|
||||
ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
|
||||
if salt.utils.is_proxy():
|
||||
|
||||
if not salt.utils.is_proxy():
|
||||
return True
|
||||
else:
|
||||
ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
|
||||
if __opts__.get('add_proxymodule_to_opts', False):
|
||||
return __opts__['proxymodule'][ping_cmd]()
|
||||
else:
|
||||
return __proxy__[ping_cmd]()
|
||||
else:
|
||||
return True
|
||||
|
||||
|
||||
def sleep(length):
|
||||
|
|
Loading…
Add table
Reference in a new issue