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

replace_or_add misbehaves when used multiple times in a policy

    XMLWordPrintable

    Details

      Description

      The replace_or_add edit_line bundle in the standard lib adds an line unnecessarily if the bundle has been used previously.

      I believe this to be related to classes from classes type bodies being namespace scoped by default. The next time the edit_line bundle is activated, it has the class for the line defined, and proceeds with the insert first because of normal order.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel