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

Variables in a 'def' bundle in a non-default namespace cause failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.4, 3.18.0
    • Component/s: Promise type: vars
    • Labels:
      None
    • Story Points:
      3

      Description

      Example says it all:

      body file control
      {
              namespace => "my_ns";
      }
      
      bundle agent def
      {
        vars:
            "my_var" string => "value";
      }
      
      bundle agent __main__
      {
        reports:
            "def.my_var: $(def.my_var)";
      }
      
      $ cf-agent/cf-agent -Kf /tmp/test.cf
      lt-cf-promises: eval_context.c:2089: GetVariableTableForScope: Assertion `!ns || strcmp("default", ns) == 0' failed.
      lt-cf-agent: eval_context.c:2089: GetVariableTableForScope: Assertion `!ns || strcmp("default", ns) == 0' failed.
      Aborted (core dumped)
      

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel