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

It should be possible to resolve a list with two levels of nested expansion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: 3.18.0
    • Fix Version/s: None
    • Component/s: cf-agent, Evaluation
    • Labels:
      None

      Description

      It should be possible to resolve a list with two levels of nested expansion.

      Example Policy
      bundle agent __main__
      {
        meta:
            "tags" slist => { "example" };
      
        vars:
            "sgat" slist => { "elpmaxe" };
      
        reports:
      
            "Pass" if => strcmp( "$(main_meta.tags)", "$($(this.bundle)_meta.tags)");
            "FAIL" unless => strcmp( "$(main_meta.tags)", "$($(this.bundle)_meta.tags)");
            "BUG: '$(main_meta.tags)' != '$($(this.bundle)_meta.tags)'";
            "BUG: '$(main.sgat)' != '$($(this.bundle).sgat)'";
      
      }
      
      R: BUG: 'example' != '$(main_meta.tags)'
      R: BUG: 'elpmaxe' != '$(main.sgat)'
      R: FAIL

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: