From 6380fe4f05a9984d68db130de5dbc4d91f2eeb06 Mon Sep 17 00:00:00 2001 From: Bryan Karaffa Date: Tue, 7 Nov 2023 09:11:21 -0800 Subject: [PATCH] Fix/meta parent templates email condition (#1611) * fix: email in aws_meta_parent.pt.template * fix: email in azure_meta_parent.pt.template * fix: email in google_meta_parent.pt.template --- tools/meta_parent_policy_compiler/aws_meta_parent.pt.template | 2 +- tools/meta_parent_policy_compiler/azure_meta_parent.pt.template | 2 +- .../meta_parent_policy_compiler/google_meta_parent.pt.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/meta_parent_policy_compiler/aws_meta_parent.pt.template b/tools/meta_parent_policy_compiler/aws_meta_parent.pt.template index d7f39ceddd..287435fed7 100644 --- a/tools/meta_parent_policy_compiler/aws_meta_parent.pt.template +++ b/tools/meta_parent_policy_compiler/aws_meta_parent.pt.template @@ -163,7 +163,7 @@ datasource "ds_published_child_policy_information" do result do encoding "json" # Select the published policy that is published by "support@flexera.com" and matches the name of the child policy template - collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "BKaraffa@flexera.com")' ) do + collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "support@flexera.com")' ) do field "name", jmes_path(col_item, "name") field "href", jmes_path(col_item, "href") field "short_description", jmes_path(col_item, "short_description") diff --git a/tools/meta_parent_policy_compiler/azure_meta_parent.pt.template b/tools/meta_parent_policy_compiler/azure_meta_parent.pt.template index d9417e5a00..c91e9da6ee 100644 --- a/tools/meta_parent_policy_compiler/azure_meta_parent.pt.template +++ b/tools/meta_parent_policy_compiler/azure_meta_parent.pt.template @@ -175,7 +175,7 @@ datasource "ds_published_child_policy_information" do result do encoding "json" # Select the published policy that is published by "support@flexera.com" and matches the name of the child policy template - collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "BKaraffa@flexera.com")' ) do + collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "support@flexera.com")' ) do field "name", jmes_path(col_item, "name") field "href", jmes_path(col_item, "href") field "short_description", jmes_path(col_item, "short_description") diff --git a/tools/meta_parent_policy_compiler/google_meta_parent.pt.template b/tools/meta_parent_policy_compiler/google_meta_parent.pt.template index 131b7fa1c5..e364a669cb 100644 --- a/tools/meta_parent_policy_compiler/google_meta_parent.pt.template +++ b/tools/meta_parent_policy_compiler/google_meta_parent.pt.template @@ -175,7 +175,7 @@ datasource "ds_published_child_policy_information" do result do encoding "json" # Select the published policy that is published by "support@flexera.com" and matches the name of the child policy template - collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "BKaraffa@flexera.com")' ) do + collect jq(response, '.items[] | select(.name == "__PLACEHOLDER_FOR_CHILD_POLICY_NAME__" and .created_by.email == "support@flexera.com")' ) do field "name", jmes_path(col_item, "name") field "href", jmes_path(col_item, "href") field "short_description", jmes_path(col_item, "short_description")