mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
parent
14f2f4ca41
commit
71013fbc32
@ -396,9 +396,10 @@ def zero(protocol=None, service_address=None):
|
||||
'''
|
||||
|
||||
if service_address:
|
||||
cmd = '{0} -Z {1}'.format(__detect_os(),
|
||||
_build_cmd(protocol=None,
|
||||
service_address=None))
|
||||
cmd = '{0} -Z {1}'.format(
|
||||
__detect_os(),
|
||||
_build_cmd(protocol=protocol, service_address=service_address)
|
||||
)
|
||||
else:
|
||||
cmd = '{0} -Z'.format(__detect_os())
|
||||
out = __salt__['cmd.run_all'](cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user