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:
Ramy Asselin 2016-07-19 08:50:53 -07:00
parent b5fc21ca37
commit 92737dfe27
1 changed files with 2 additions and 0 deletions

View File

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