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

insert_type => "preserve_block" in insert_lines promises doesn't converge

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Labels:
      None

      Description

      The following inserts $(message) every time CFEngine runs, regardless of its presence in the file, thus growing the file indefinitely.

      vars:
      "message" string => "*************************************
      This system is managed by CFEngine 3
      **************************************";

      insert_lines:
      "$(message)"
      handle => "insert_cfengine_line",
      comment => "Add 'managed by CFEngine' line to a file";
      insert_type => "preserve_block"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              jiraadmin Old User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: