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

evaluation is too eager with function evaluation, ignoring ifvarclass/ifelapsed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Evaluation
    • Labels:
      None

      Description

      The @ifvarclass@ and @ifelapsed@ attributes are ignored when the right side is evaluated, resulting in unnecessary function calls.

      For example these two behave differently:

      <pre>
      vars:
      "x" string => execresult("/bin/echo X"), ifvarclass => "linux";
      </pre>

      vs.

      <pre>
      vars:
      linux::
      "x" string => execresult("/bin/echo X");
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                jiraadmin Old User (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel