We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37b57d4 + b42530a commit 40d9e0fCopy full SHA for 40d9e0f
1 file changed
inventory/any.cf
@@ -18,7 +18,10 @@ bundle common inventory_any
18
19
"policy_version" -> { "ENT-9806" }
20
string => "$(default:control_common.version)",
21
- meta => { "inventory", "attribute_name=CFEngine policy version" };
+ meta => { "inventory", "attribute_name=CFEngine policy version" },
22
+ if => not(isvariable("sys.policy_version")),
23
+ comment => concat( "Don't inventory the policy version from policy when it's available",
24
+ " as a sys var to avoid duplicate values being inventoried.");
25
26
reports:
27
"DEBUG|DEBUG_$(this.bundle)"::
0 commit comments