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

Nested expansion of variables including namespace does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.10.0
    • Component/s: Evaluation
    • Labels:
      None

      Description

      I am unable to use nested expansion when using namespaces in the variable name.

      Example Policy
      <pre>
      bundle agent init
      {
      vars:
      "dummy" string => "dummy";
      }

      bundle agent main
      {
      methods:
      "check" usebundle => check("default:init");
      }
      bundle agent check(data_bundle)
      {
      reports:
      "'$(data_bundle).dummy' = $($(data_bundle).dummy)";
      "'$(data_bundle).dummy' = $(default:init.dummy)";
      }
      </pre>

      Output:
      <pre>
      R: 'default:init.dummy' = $(default:init#dummy)
      R: 'default:init.dummy' = dummy
      </pre>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: