Skip to content

Commit cfd5ed1

Browse files
authored
Merge pull request #1858 from nickanderson/ENT-6473/master
ENT-6473/master: Fixed interpretation of cf-hub --show-license from REPAIRED to KEPT
2 parents 099635d + 8668855 commit cfd5ed1

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

cfe_internal/enterprise/CFE_hub_specific.cf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,9 @@ bundle agent inventory_cfengine_enterprise_license_utilization
434434

435435
have_cf_hub::
436436

437-
"$(sys.cf_hub)"
438-
arglist => { "--show-license", ">", $(cf_hub_show_license_output) },
437+
"$(sys.cf_hub) --show-license"
438+
arglist => { ">", $(cf_hub_show_license_output) },
439+
handle => "enterprise_hub_license_info_cache",
439440
contain => in_shell,
440441
inform => "false",
441442
classes => ENT_5279;
@@ -446,12 +447,13 @@ bundle agent inventory_cfengine_enterprise_license_utilization
446447
body classes ENT_5279
447448
# @brief Work around ENT-5279, cf-hub --show-license returns 1 when no license is installed
448449
{
450+
kept_returncodes => { "0" };
449451

450-
# TODO: Redact when 3.15.x is no longer supported
451-
# considered kept on affected versions.
452+
# TODO: Redact when 3.15.x is no longer supported
453+
# considered kept on affected versions.
452454

453-
cfengine_3_15_0::
454-
kept_returncodes => { "0", "1" };
455+
cfengine_3_15_0::
456+
kept_returncodes => { "0", "1" };
455457
}
456458

457459
bundle agent log_cfengine_enterprise_license_utilization

0 commit comments

Comments
 (0)