Honor show-diff options with puppet apply
puppet apply ignores the show-diff option. Update the code so that both puppet apply and puppet agent support the show-diff option. Change-Id: I5b59b8ba8e50a44458d01ec97113a2ce313c1d9a
This commit is contained in:
parent
b5fc21ca37
commit
92737dfe27
@ -197,6 +197,8 @@ def main():
|
||||
cmd = "%s apply --detailed-exitcodes " % base_cmd
|
||||
if p['logdest'] == 'syslog':
|
||||
cmd += "--logdest syslog "
|
||||
if p['show_diff']:
|
||||
cmd += "--show_diff "
|
||||
if p['environment']:
|
||||
cmd += "--environment '%s' " % p['environment']
|
||||
if module.check_mode:
|
||||
|
Loading…
x
Reference in New Issue
Block a user