# Test that select_class is skipped when no classes are given
body common control {
      inputs => { "../../default.sub.cf" };
      bundlesequence  => { default("$(this.promise_filename)") };
      version => "1.0";
}

bundle common test 
{
#  meta:
#      "test_soft_fail" string => "any",
#        meta => { "redmine7482" };

  vars:
    any::
      "common_classes" slist => { "common_1", "common_2" };

    common_class_selected::	
      "class_selected"
        string => "$(common_classes)",
        if => "$(common_classes)";
  
  classes:
      "common_class_selected"
        select_class => { };

}

bundle agent check
{
  methods:
      "any" usebundle => dcs_passif("any",
                                    "$(this.promise_filename)"),
        unless => "common_class_selected";
}
