Skip to content

Commit

Permalink
Removed considerations for old versions from bundle agent cfe_autorun…
Browse files Browse the repository at this point in the history
…_inventory_aws_ec2_metadata_cache

CFEngine 3.10 and 3.11 are long out of support, no need to carry this
considerations forward.

Ticket: CFE-4222
Changelog: Title
(cherry picked from commit c42cce1)
  • Loading branch information
nickanderson committed Jul 5, 2023
1 parent e0c6cd2 commit 3c11fcf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions inventory/any.cf
Original file line number Diff line number Diff line change
Expand Up @@ -670,23 +670,12 @@ bundle agent cfe_autorun_inventory_aws_ec2_metadata_cache
files:
ec2_instance.!(disable_inventory_aws|disable_inventory_aws_ec2_metadata)::

cfengine_3_10::
"$(cache)"
create => "true",
edit_line => lines_present( "$(response[content])" ),
edit_defaults => empty,
if => regcmp( ".*", "$(content[version])" );

@if minimum_version(3.11)
# template_method inline_mustache introduced in 3.11
!cfengine_3_10::
"$(cache)"
template_method => "inline_mustache",
edit_template_string => "{{{content}}}",
template_data => @(response),
create => "true",
if => regcmp( ".*", "$(content[version])" );
@endif
}

bundle agent cfe_aws_ec2_metadata_from_cache
Expand Down

0 comments on commit 3c11fcf

Please sign in to comment.