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

Verbose log about skipping promise due to ifvarclass not matching erroneously refers to prefixed class expression

    XMLWordPrintable

    Details

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

      Description

      This situation occurs if a promise is prefixed with a "class_exp_1::" notation and has a "ifvarclass => "class_exp_2" statement. Then the log message says:

      <pre>
      Skipping next promise '<promise>', as context 'class_exp_1' is not relevant
      </pre>

      Whereas it should say:

      <pre>
      Skipping next promise '<promise>', as var-context 'class_exp_2' is not relevant
      </pre>

      This has no undesired consequence on the actual actions CFEngine performs but it does make debugging harder. This is new in CFEngine 3.5 and does not occur in 3.4.x.

      I have found the issue and a Pull Request is coming.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jooooooon Jonathan Clarke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel