Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9001

show_diff does not show content changes for new files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • CS Priority:
      Minor
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      2 - $$$
    • CS Impact:
      This would be a very nice UX improvement. Reid calls out one of the really nice things about Chef is very clear diffs. The fact that we don't provide diffs for noop runs is clearly an annoyance to this large customer.

      Description

      I searched in jira but did not see a similar issue.
      It was filed in old issue tracker linked here: https://projects.puppetlabs.com/issues/21537

      Overview

      show_diff does not show diff for files that hasn't been created

      Example

      file

      { '/tmp/hahaha/': ensure => present, content => "Hello Puppet Labs", show_diff => "true", }

      Expected behavior

      puppet agent --test --noop will show the diff of the file

      Actual Behaviour

      [root@pe-383-master manifests]# puppet agent --test --noop
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for pe-383-master.puppetdebug.vlan
      Info: Applying configuration version '1448882931'
      Notice: /Stage[main]/Main/Node[default]/File[/tmp/hahaha/]/ensure: current_value absent, should be present (noop)
      Notice: Node[default]: Would have triggered 'refresh' from 1 events
      Notice: Class[Main]: Would have triggered 'refresh' from 1 events
      Notice: Stage[main]: Would have triggered 'refresh' from 1 events
      Notice: Finished catalog run in 8.09 seconds

      Customer KPN Supply is facing this problem and is looking for possible workaround, (to see file content before it got apply)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            joshua.tee Joshuatly Tee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support