@@ -276,15 +276,33 @@ bundle common def
276276 if => not( isvariable( "control_agent_maxconnections" ) );
277277
278278 # Because in some versions of cfengine bundlesequence in body common
279- # control does not support does not support iteration over data containers
280- # we must first pick out the bundles into a shallow container that we can
281- # then get a regular list from using getvalues().
279+ # control does not support iteration over data containers we must first
280+ # pick out the bundles into a shallow container that we can then get a
281+ # regular list from using getvalues().
282282
283- "tbse" data => mergedata( "def.control_common_bundlesequence_end" );
284- "bundlesequence_end" slist => getvalues( tbse );
285-
286- "tbse" data => mergedata( "def.control_common_bundlesequence_classification" );
287- "bundlesequence_classification" slist => getvalues( tbse );
283+ "bundlesequence_end" -> { "CFE-4855" }
284+ slist => { },
285+ if => not( isvariable( "def.control_common_bundlesequence_end") ),
286+ comment => concat( "We define an empty list so that the agent will not",
287+ " error about undefined variable when ",
288+ " def.bundlesequence_end is not defined." );
289+ "bundlesequence_end" -> { "CFE-4855" }
290+ slist => getvalues( mergedata( "def.control_common_bundlesequence_end" ) ),
291+ comment => concat( "We define bundlesequence_end from Augments if it's",
292+ " available. This allows for customization without",
293+ " modifying the vendored policy." );
294+
295+ "bundlesequence_classification" -> { "CFE-4855" }
296+ slist => { },
297+ if => not( isvariable( "def.control_common_bundlesequence_classification") ),
298+ comment => concat( "We define an empty list so that the agent will not",
299+ " error about undefined variable when ",
300+ " def.bundlesequence_classification is not defined." );
301+ "bundlesequence_classification" -> { "CFE-4855" }
302+ slist => getvalues( mergedata( "def.control_common_bundlesequence_classification" ) ),
303+ comment => concat( "We define bundlesequence_classification from Augments if it's",
304+ " available. This allows for customization without",
305+ " modifying the vendored policy." );
288306
289307 "control_common_ignore_missing_bundles" -> { "CFE-2773" }
290308 string => ifelse( strcmp( $(control_common_ignore_missing_bundles), "true" ),
0 commit comments