Skip to content

Commit 40d9e0f

Browse files
authored
Merge pull request #3050 from victormlg/sys_policy_version
ENT-4043: Disabled policy versions
2 parents 37b57d4 + b42530a commit 40d9e0f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

inventory/any.cf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ bundle common inventory_any
1818

1919
"policy_version" -> { "ENT-9806" }
2020
string => "$(default:control_common.version)",
21-
meta => { "inventory", "attribute_name=CFEngine policy version" };
21+
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.");
2225

2326
reports:
2427
"DEBUG|DEBUG_$(this.bundle)"::

0 commit comments

Comments
 (0)