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

Not possible to expand the bundle name in a variable when passing data containers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.9.0, 3.7.3, 3.12.0
    • Fix Version/s: 3.12.6, 3.15.3, 3.17.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      8

      Description

      I have observed issues when trying to pass a datacontainer as a variable name.

      vars:
        "bundle" string => "mybundle";
      
      methods:
      "" usebundle => report_data("@($(bundle).d)")
      

      This will result in an error

         error: List or container parameter '$(bundle).d' not found while constructing scope 'report_data' - use @(scope.variable) in calling reference
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              a10042 Nick Anderson
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: