XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      [root@hub ~]# cat t.cf
      bundle agent __main__ { methods: "pudding"; }
      bundle agent pudding 
      {
        vars:
            "cfengine_class_tags" slist => getclassmetatags( "cfengine" );
      
        commands:
          try_to_undefine::
            "/bin/true"
              classes => undefine( "cfengine" );
      
        reports:
            "cfengine class tags: $(with)" with => join( ", ", cfengine_class_tags);
      }
      body classes undefine( class )
      {
            cancel_kept => { $(class) };
            cancel_repaired => { $(class) };
            cancel_notkept => { $(class) };
      }
      
      
      [root@hub ~]# cf-agent -KIf ./t.cf -D try_to_undefine
          info: Executing 'no timeout' ... '/bin/true'
         error: You cannot cancel a reserved hard class 'cfengine' in post-condition classes
          info: Completed execution of '/bin/true'
      R: cfengine class tags: inventory, attribute_name=none, source=agent, hardclass
      
      

        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: