diff --git a/cli/src/pcluster/config/mappings.py b/cli/src/pcluster/config/mappings.py index 75a60e8073..f61db7951d 100644 --- a/cli/src/pcluster/config/mappings.py +++ b/cli/src/pcluster/config/mappings.py @@ -1032,7 +1032,7 @@ "type": JsonCfnParam, "default": {}, "cfn_param_mapping": "InstanceTypesData", - "update_policy": UpdatePolicy.IGNORED + "update_policy": UpdatePolicy.UNSUPPORTED }), ] diff --git a/cli/src/pcluster/utils.py b/cli/src/pcluster/utils.py index a832b6489b..e5763e7791 100644 --- a/cli/src/pcluster/utils.py +++ b/cli/src/pcluster/utils.py @@ -1258,7 +1258,7 @@ def __init__(self, instance_type_data): @staticmethod def load_additional_instance_types_data(instance_types_data): """Load additional data to describe instance types.""" - InstanceTypeInfo.__additional_instance_types_data.update(instance_types_data) + InstanceTypeInfo.__additional_instance_types_data = instance_types_data if instance_types_data else {} @staticmethod def clear_additional_instance_types_data(): @@ -1353,7 +1353,7 @@ def is_efa_supported(self): def supported_usage_classes(self): """Return the list supported usage classes.""" - supported_classes = self.instance_type_data.get("SupportedUsageClasses", []) + supported_classes = list(self.instance_type_data.get("SupportedUsageClasses", [])) if "on-demand" in supported_classes: # Replace official AWS with internal naming convention supported_classes.remove("on-demand")