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

cf-promises exits zero, but give error: index brackets do not balance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None
    • Platform:
      Debian
    • Found in version (details):
      3.6.3 RC
    • Steps to reproduce:
      Manual steps provided

      Description

      <pre>
      body common control
      {
      bundlesequence =>

      { "main", }

      ;
      }

      bundle agent main
      {
      reports:
      "Yada, yada, yada"
      ifvarclass => "${d[${i}][class}]}";
      }
      </pre>

      Expected results:
      <pre>
      error: /default/main/reports: Broken variable expression, index brackets do not balance, in <with line number>
      </pre>
      And exits non-zero.

      Actual results:
      <pre>
      neil@ettin ~/.cfagent/inputs $ cf-promises -cf ./bug.cf
      2014-12-03T15:31:37-0500 error: /default/main/reports: Broken variable expression, index brackets do not balance, in 'd[${i}][class'
      2014-12-03T15:31:37-0500 error: /default/main/reports: Broken variable expression, index brackets do not balance, in '][class'
      neil@ettin ~/.cfagent/inputs $ echo $?
      0
      </pre>

      Note: no line number given.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                neilhwatson Neil Watson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel