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

Error defining empty slists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Parsing
    • Labels:
      None
    • Found in version (details):
      CFEngine Core 3.4.5.5e0e6bd

      Description

      The following gives syntax error in CFEngine Core 3.4.5.5e0e6bd

      <pre>
      bundle agent test
      {
      vars:
      "emptylist" slist => {};

      reports:
      cfengine::
      "emptylist = $(emptylist)";
      }
      </pre>

      <pre>
      enterprise> ./test.cf:9,27: syntax error, near token '}'
      !! Your configuration promises no host_licenses_paid in common control
      !! By doing this, you confirm that the terms of the contract are legally binding
      </pre>

      This used to just warn in older versions. Seems to be gone from master.

      Use "cf_null" as a workaround

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel