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

ProgrammingError with double ifvarclass in cf-promises

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      <pre>
      body common control
      {
      inputs =>

      { "$(sys.libdir)/stdlib.cf" }

      ;
      bundlesequence =>

      { "check_rval_issue", }

      ;
      }

      bundle agent check_rval_issue
      {

      classes:

      "prereqsdda"
      expression => userexists("dda"),
      ifvarclass => groupexists("opc"),
      ifvarclass => groupexists("dba");

      users:

      linux.orcax86.prereqsdda::
      "dda"
      policy => "present",
      groups_secondary =>

      { "opc", "dba" }

      ;
      }
      </pre>

      <pre>
      $ cf-promises/cf-promises -f ./test.cf
      rlist.c:117: Programming Error: Internal error: Rval contains type f instead of expected scalar
      Aborted (core dumped)
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel