From 428afb701a1a567680d58c8f2e51dc63ac38b7d9 Mon Sep 17 00:00:00 2001 From: EarthmanT Date: Wed, 16 Mar 2022 12:38:28 -0400 Subject: [PATCH] make sure terraform plan only uses module nodes (#155) --- CHANGELOG.txt | 1 + cloudify_tf/workflows.py | 2 ++ plugin.yaml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 195fd8c..038fe5f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,4 @@ +0.18.14: RD-4372 Make sure that terraform plan only uses module nodes. 0.18.13: Fix issue in tflint 0.18.12: Soft Fail TF Sec 0.18.11: diff --git a/cloudify_tf/workflows.py b/cloudify_tf/workflows.py index f77ba4b..ca50a67 100644 --- a/cloudify_tf/workflows.py +++ b/cloudify_tf/workflows.py @@ -110,6 +110,8 @@ def terraform_plan(ctx, ) elif node_ids or (not node_ids and not node_instance_ids): for node in ctx.nodes: + if 'cloudify.nodes.terraform.Module' not in node.type_hierarchy: + continue if not node_ids or node.id in node_ids: for instance in node.instances: _plan_module_instance( diff --git a/plugin.yaml b/plugin.yaml index 4968567..64bc353 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -2,7 +2,7 @@ plugins: tf: executor: central_deployment_agent package_name: cloudify-terraform-plugin - package_version: '0.18.13' + package_version: '0.18.14' dsl_definitions: