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

Outcome classes never set in warn-only

    XMLWordPrintable

    Details

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

      Description

      When setting action_policy => "warn" in file-edits, the classes body is ignored.
      In the attached example, cf-agent needs to always set one of the classes.

      To reproduce (policy attached)

      1. $ echo "root:WRONGPASSWD:15093:0:99999:7:::" > /tmp/shadow
      2. $ cf-agent -Kf ./test.cf
        This should output "Was NOT ok!" (currently nothing).
      1. $ echo "root:myrootpassword:15093:0:99999:7:::" > /tmp/shadow
      2. $ cf-agent -Kf ./test.cf
        This should output "Was ok!" (currently nothing).

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              a10003 Eystein Maloy Stenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: