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

ifvarclass not respected in some cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Evaluation
    • Labels:
      None
    • Platform:
      Any

      Description

      In some cases, @ifvarclass@ is not respected and promises are needlessly repaired (including running system commands).

      Example from acceptance test:

      <pre>
      classes:
      "zclass" expression => returnszero("$(G.echo) xyz > $(G.testfile).z",
      "useshell"),
      ifvarclass => not("any");

      !any::
      "z2class" expression => returnszero("$(G.echo) xyz > $(G.testfile).z2",
      "useshell");

      </pre>

      Acceptance test is in

      <pre>
      git fetch git@github.com:tzz/core.git test/ifvarclass-more
      </pre>

      Reported by customer.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel