Skip to content

Commit

Permalink
create resource changes in status (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthmanT authored Oct 23, 2023
1 parent 8f57d9c commit 1889974
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
0.20.6: Improve usage of show that returns list.
0.20.5: Handle Terraform Multidocument JSON load.
0.20.4: Add plugin.yaml for DSL 1.5.
0.20.2: Rerelease with 7.X dependencies.
Expand Down
2 changes: 1 addition & 1 deletion cloudify_tf/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.20.5'
version = '0.20.6'
7 changes: 6 additions & 1 deletion cloudify_tf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,12 @@ def refresh_resources_drifts_properties(plan_json):
"""
ctx.instance.runtime_properties[IS_DRIFTED] = False
drifts = {}
resource_changes = plan_json.get('resource_changes', [])
if isinstance(plan_json, list):
resource_changes = []
for foo in plan_json:
resource_changes.extend(foo.get('resource_changes', []))
else:
resource_changes = plan_json.get('resource_changes', [])
for resource_change in resource_changes:
change = resource_change.get('change', {})
if change['actions'] not in [['no-op'], ['read']]:
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins:
tf:
executor: central_deployment_agent
package_name: cloudify-terraform-plugin
package_version: 0.20.5
package_version: 0.20.6
dsl_definitions:
terraform_config:
terraform_config: &id001
Expand Down
2 changes: 1 addition & 1 deletion plugin_1_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins:
tf:
executor: central_deployment_agent
package_name: cloudify-terraform-plugin
package_version: '0.20.5'
package_version: '0.20.6'

dsl_definitions:

Expand Down
2 changes: 1 addition & 1 deletion plugin_1_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins:
tf:
executor: central_deployment_agent
package_name: cloudify-terraform-plugin
package_version: '0.20.5'
package_version: '0.20.6'

dsl_definitions:

Expand Down
2 changes: 1 addition & 1 deletion v2_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins:
tf:
executor: central_deployment_agent
package_name: cloudify-terraform-plugin
package_version: 0.20.5
package_version: 0.20.6
dsl_definitions:
terraform_config:
terraform_config: &id001
Expand Down

0 comments on commit 1889974

Please sign in to comment.