We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83c4e0c + 8877078 commit bfeed7bCopy full SHA for bfeed7b
1 file changed
inventory/any.cf
@@ -607,7 +607,7 @@ bundle agent cfe_autorun_inventory_aws_ec2_metadata_cache
607
create => "true",
608
edit_line => lines_present( "$(response[content])" ),
609
edit_defaults => empty,
610
- if => isvariable( response );
+ if => regcmp( ".*", "$(response[content][version])" );
611
612
@if minimum_version(3.11)
613
# template_method inline_mustache introduced in 3.11
@@ -617,7 +617,7 @@ bundle agent cfe_autorun_inventory_aws_ec2_metadata_cache
617
edit_template_string => "{{{content}}}",
618
template_data => @(response),
619
620
621
@endif
622
}
623
0 commit comments