Pass through arguments in lvs.zero

Fixes #9001.
This commit is contained in:
Erik Johnson 2014-04-23 08:55:06 -05:00
parent 14f2f4ca41
commit 71013fbc32

View File

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