mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 07:29:38 -05:00
Fix default instanceType generation
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
65d28f913f
commit
ecae1c8f9a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user