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

slist bundlesequence does not allow same format as strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      Consider the following bundle. The commented out bundlesequence returns an error:
      <pre>
      Bundle "main( 'test' )" listed in the bundlesequence is not a defined bundle
      Fatal CFEngine error: Errors in promise bundles
      </pre>
      The second bundlesequence functions normally. I believe the first example should work.

      <pre>

      bundle agent g
      {
      vars:
      "bs"
      slist =>

      { "main( 'test' )" }

      ;
      }

      body common control
      {
      #bundlesequence => { g, @

      {g.bs}

      };
      bundlesequence =>

      { g, main(' test' ) }

      ;

      inputs =>

      { "libraries/cfengine_stdlib.cf", }

      ;
      }

      bundle agent main( ref )
      {
      methods:

      "any" usebundle => test;

      reports:
      cfengine::
      "main ${ref}";
      }

      bundle agent test
      {
      reports:
      cfengine::
      "test bundle";
      }
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              neilhwatson Neil Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel