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

select_class with slist doesn't work in bundle common, looks like evaluation bug.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.2
    • Component/s: Evaluation
    • Labels:
      None

      Description

      Consider the attached example:

      1. /var/cfengine/bin/cf-agent -K -f ./select_class.cf
        R: Bundle common test_common: class_selected => $(test_common.class_selected)
        R: Bundle agent test_agent: class_selected => agent_1
      1. /var/cfengine/bin/cf-agent -K -f ./select_class.cf -v

      [...]

      verbose: BEGIN initial soft classes:
      verbose: C: added soft class _common_classes
      verbose: C: added soft class common_class_selected
      verbose: END initial soft classes
      verbose: ----------------------------------------------------------------

      [...]

      So, for bundle common it seems the @(common_classes) is auto canonified (_common_classes) instead of being treated as an slist.
      This seems to be working in bundle agent as the selection is made correctly.

        Attachments

        1. common_bundle_select_class_list.cf
          0.7 kB
          Nick Anderson
        2. select_class.cf
          0.8 kB
          Jon Henrik Bjørnstad

          Issue Links

            Activity

              People

              • Assignee:
                a10053 Marcin Pasinski
                Reporter:
                a10007 Jon Henrik Bjørnstad (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: