what was I thinking?

This commit is contained in:
C. R. Oldham 2015-10-08 07:03:47 -06:00
parent fae3f3ca83
commit a615e5a876

View file

@ -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):