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

warn action policy is ignored when moving obstructions

    XMLWordPrintable

    Details

      Description

      The action policy is ignored when moving obstructions:

      $ touch /tmp/test1
      $ cf-agent -Kf test.cf
      $ ls /tmp/test1*
      /tmp/test1.cfsaved
      

      With test.cf:

      bundle agent main
      {
        files:
            "/tmp/test1"
                          link_from         => ln_s("/tmp/test2"),
                          action => warn_only,
                          move_obstructions => "true";
      }
      
      body link_from ln_s(x)
      {
            link_type => "symlink";
            source => "$(x)";
            when_no_source => "force";
      }
      
      body action warn_only
      {
            action_policy => "warn";
      }
      

        Attachments

          Activity

            People

            Assignee:
            a10038 jimis (Dimitrios Apostolou)
            Reporter:
            amousset Alexis Mousset
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: