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

$(with) not expanded if the expansion contains unresolved vars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.19.0
    • Fix Version/s: 3.15.5, 3.18.1, 3.19.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3

      Description

      $(with) is not expanding if its value contains unresolved variables. As can be seen with this short example:

      bundle agent main
      {
        vars:
            "y" slist => { @{x} };
      
        reports:
           "y: $(with)" with => format("%S", y);
      }
      

      which produces

      R: y: $(with)
      

      If it itself can be resolved, it should be expanded into the value it has in the last evaluation pass.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: