Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3916

When content attribute is used in files promises, `create => "false"` is ignored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.18.2, 3.20.0
    • Fix Version/s: 3.20.0
    • Component/s: cf-agent
    • Labels:
      None
    • Story Points:
      2

      Description

      When content attribute is used in files promises, `create => "false"` is ignored. The create attribute should have same behavior as when template methods mustache and inline_mustache is used. I.e.

      • If `create => "true"` is specified; the file is created even though rendering fails.
      • If `create => "false"` is specified; the file is never created.
      • If not specified; the file is created by default, but only upon successful rendering.

      Also mention the content attribute in the comment where this logic is implemented for the mustache template methods.

        Attachments

          Activity

            People

            Assignee:
            larsewi Lars Erik Wik
            Reporter:
            larsewi Lars Erik Wik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: