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

Editfiles preserve_block behaviour

    XMLWordPrintable

    Details

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

      Description

      In the attached example, a preserve block, with before_after => "after" does not properly check whether the blocked text exists, and will add it multiple times.

      e.g. first run the method set_up_tree (convergent), so prep the file, then switch to set_up_tree_recipe (non-convergent)

      I would like some help in turning this into an acceptance test, and will happily fix the bug when I have some concentration time.
      This could be related to other reported bugs about end-of-region (speculation)

        Attachments

        1. block_insert_duplicate.cf
          1 kB
          Nicolas Charles
        2. test.cf
          0.5 kB
          Nicolas Charles
        3. xmas.cf
          1 kB
          Mark Burgess

          Issue Links

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              a10004 Mark Burgess (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: