Jira (PUP-11693) puppet apply --show-diff does nothing
Title: Message Title Morgan Rhodes updated an issue Puppet / PUP-11693 puppet apply --show-diff does nothing Change By: Morgan Rhodes Team: Phoenix Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.477151.1671110796000.69507.1672781640062%40Atlassian.JIRA.
Jira (PUP-11693) puppet apply --show-diff does nothing
Title: Message Title Morgan Rhodes updated an issue Puppet / PUP-11693 puppet apply --show-diff does nothing Change By: Morgan Rhodes Epic Link: PUP-11660 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.477151.1671110796000.69508.1672781640265%40Atlassian.JIRA.
Jira (PUP-11693) puppet apply --show-diff does nothing
Title: Message Title Josh Cooper commented on PUP-11693 Re: puppet apply --show-diff does nothing I think this is variation of PUP-4429, though in this case it's underscore vs dash. Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.477151.1671110796000.67294.1671147540051%40Atlassian.JIRA.
Jira (PUP-11693) puppet apply --show-diff does nothing
Title: Message Title Daniel Parks updated an issue Puppet / PUP-11693 puppet apply --show-diff does nothing Change By: Daniel Parks *Puppet Version:* 7.21.0*Puppet Server Version:* N/A*OS Name/Version:* Ubuntu 22.04.1 Jammy{{puppet apply}} (and presumably {{ {} agent { }} } ) accepts a {{ \ --show-diff}} parameter without failing, but it doesn’t do anything. (The correct name for the parameter is {{ {} \ --show_diff { }} } ; note the underscore.)This is mostly a problem because {{ \ --show-diff}} is a natural guess based on the configuration reference. I’m not sure it’s actual name is documented outside of the help for the {{ \ --test}} option.*Desired Behavior:* either fail with “invalid option” or succeed as if {{ \ --show_diff}} was specified.*Actual Behavior:* ignores the option{code}❯ rm -f /tmp/foo ; touch /tmp/foo❯ puppet apply --show_diff -e 'file { "/tmp/foo": content => "${facts[system_uptime][seconds]}\n" }'Notice: Compiled catalog for vm3.oxidized.org in environment production in 0.01 secondsNotice: /Stage[main]/Main/File[/tmp/foo]/content: --- /tmp/foo 2022-12-15 05:22:48.650776253 -0800+++ /tmp/puppet-file20221215-13413-13tokve 2022-12-15 05:22:52.354791664 -0800@@ -0,0 +1 @@+77133Notice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{sha256}e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' to '{sha256}9bd523e3860777cd1c2d38207b95a7bc0bd8ed1d47afc839da1378ce71ad28f3'Notice: Applied catalog in 0.02 seconds❯ sleep 1 ; puppet apply --show-diff -e 'file { "/tmp/foo": content => "${facts[system_uptime][seconds]}\n" }'Notice: Compiled catalog for vm3.oxidized.org in environment production in 0.01 secondsNotice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{sha256}9bd523e3860777cd1c2d38207b95a7bc0bd8ed1d47afc839da1378ce71ad28f3' to '{sha256}3b9cd754c5b3f7219943c3ebdf2b51b972980cfc0d478e645784ae2b78699314'Notice: Applied catalog in 0.01 seconds❯ puppet apply --invalidError: Could not parse application options: invalid option: --invalid{code} Add Comment
Jira (PUP-11693) puppet apply --show-diff does nothing
Title: Message Title Daniel Parks created an issue Puppet / PUP-11693 puppet apply --show-diff does nothing Issue Type: Bug Assignee: Unassigned Created: 2022/12/15 5:26 AM Priority: Normal Reporter: Daniel Parks Puppet Version: 7.21.0 Puppet Server Version: N/A OS Name/Version: Ubuntu 22.04.1 Jammy puppet apply (and presumably agent) accepts a -show-diff parameter without failing, but it doesn’t do anything. (The correct name for the parameter is -show_diff; note the underscore.) This is mostly a problem because -show-diff is a natural guess based on the configuration reference. I’m not sure it’s actual name is documented outside of the help for the -test option. Desired Behavior: either fail with “invalid option” or succeed as if --show_diff was specified. Actual Behavior: ignores the option ❯ rm -f /tmp/foo ; touch /tmp/foo ❯ puppet apply --show_diff -e 'file { "/tmp/foo": content => "${facts[system_uptime][seconds]}\n" }' Notice: Compiled catalog for vm3.oxidized.org in environment production in 0.01 seconds Notice: /Stage[main]/Main/File[/tmp/foo]/content: