From 3b492c0860621282658d662eee300aa9f1670b79 Mon Sep 17 00:00:00 2001 From: mauricioobgo Date: Wed, 18 Dec 2024 09:15:02 -0500 Subject: [PATCH] FeatureChange: change default result of get method --- data-collection/deploy/module-inventory.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data-collection/deploy/module-inventory.yaml b/data-collection/deploy/module-inventory.yaml index 2133469..3fe021e 100644 --- a/data-collection/deploy/module-inventory.yaml +++ b/data-collection/deploy/module-inventory.yaml @@ -1163,12 +1163,12 @@ Resources: cluster_data["NodeGroups"].append({ "NodeGroupName": node_group_details["nodegroup"].get("nodegroupName"), "NodeRole": node_group_details["nodegroup"].get("nodeRole"), - "InstanceTypes": node_group_details["nodegroup"].get("instanceTypes"), - "ScalingConfig": node_group_details["nodegroup"].get("scalingConfig"), - "Subnets": node_group_details["nodegroup"].get("subnets"), - "Status": node_group_details["nodegroup"].get("status"), - "AMIType": node_group_details["nodegroup"].get("amiType"), - "Version": node_group_details["nodegroup"].get("version"), + "InstanceTypes": node_group_details["nodegroup"].get("instanceTypes",[]), + "ScalingConfig": node_group_details["nodegroup"].get("scalingConfig",{}), + "Subnets": node_group_details["nodegroup"].get("subnets",[]), + "Status": node_group_details["nodegroup"].get("status","Unknown"), + "AMIType": node_group_details["nodegroup"].get("amiType","Unknown"), + "Version": node_group_details["nodegroup"].get("version","Unknown"), "CreatedAt": datetime.strftime( node_group_details["nodegroup"]["createdAt"].astimezone(tz=timezone.utc), "%Y-%m-%dT%H:%M:%SZ" ),