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

Outcome classes for the real promiser not set in 'files' promises

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.17.0
    • Component/s: Promise type: files
    • Labels:
      None
    • Story Points:
      3

      Description

      If there is a files promise like this:

      "/my/dir/.*" 
          perms => mog(...),
          classes => outcome_classes_using_this_promiser;
       # ...
      
        body classes outcome_classes_using_this_promiser
        {
          promise_kept => { "$(this.promiser)_kept" }; 
          promise_repaired => { "$(this.promiser)_repaired" }; 
          repair_failed => { "$(this.promiser)_failed" }; 
          repair_denied => { "$(this.promiser)_denied" }; 
          repair_timeout => { "$(this.promiser)_timeout" }; 
        }
      

      and it repairs permissions of files matching the pattern, using $(this.promiser), only the outcome classes for the matching files are defined, e.g. _my_dir_foo_repaired. The _my_dir__repaired class (canonical version of /my/dir/*repaired) is not defined.

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel