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
ccf366e1a5
commit
62d9f5092e
1 changed files with 2 additions and 7 deletions
|
@ -110,13 +110,8 @@ def ping():
|
|||
|
||||
salt '*' test.ping
|
||||
'''
|
||||
ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
|
||||
if salt.utils.is_proxy():
|
||||
if __opts__.get('add_proxymodule_to_opts', False):
|
||||
return __opts__['proxymodule'][ping_cmd]()
|
||||
else:
|
||||
return __proxy__[ping_cmd]()
|
||||
else:
|
||||
|
||||
if not salt.utils.is_proxy():
|
||||
return True
|
||||
else:
|
||||
ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
|
||||
|
|
Loading…
Add table
Reference in a new issue