Skip to content

Commit

Permalink
Pass through arguments in lvs.zero
Browse files Browse the repository at this point in the history
Fixes #9001.
  • Loading branch information
terminalmage committed Apr 23, 2014
1 parent 14f2f4c commit 71013fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions salt/modules/lvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 71013fb

Please sign in to comment.