From ecae1c8f9a93829d3ff9f517dd2eecf33c4649b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Thu, 25 Jan 2024 16:22:14 +0100 Subject: [PATCH] Fix default instanceType generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index e7af7c74f..c656529a3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -546,6 +546,7 @@ func (c *Config) UpdateMeasurements(newMeasurements measurements.M) { func (c *Config) RemoveProviderAndAttestationExcept(provider cloudprovider.Provider) { c.RemoveProviderExcept(provider) c.SetAttestation(variant.GetDefaultAttestation(provider)) + c.SetCSPNodeGroupDefaults(provider) } // RemoveProviderExcept removes all provider specific configurations, i.e., @@ -569,7 +570,6 @@ func (c *Config) RemoveProviderExcept(provider cloudprovider.Provider) { default: c.Provider = currentProviderConfigs } - c.SetCSPNodeGroupDefaults(provider) } // SetAttestation sets the attestation config for the given attestation variant and removes all other attestation configs.