mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 07:15:05 -04:00
azure: fix ccm config with correct uami client_id (#2144)
* fix azure ccm config with correct uami client_id * fix tests
This commit is contained in:
parent
5fa50c7fcc
commit
26480016a9
6 changed files with 16 additions and 8 deletions
|
@ -254,13 +254,13 @@ func (c *Client) ShowCluster(ctx context.Context, provider cloudprovider.Provide
|
|||
}
|
||||
}
|
||||
|
||||
azureUAMIOutput, ok := tfState.Values.Outputs["user_assigned_identity"]
|
||||
azureUAMIOutput, ok := tfState.Values.Outputs["user_assigned_identity_client_id"]
|
||||
if !ok {
|
||||
return ApplyOutput{}, errors.New("no user_assigned_identity output found")
|
||||
return ApplyOutput{}, errors.New("no user_assigned_identity_client_id output found")
|
||||
}
|
||||
azureUAMI, ok := azureUAMIOutput.Value.(string)
|
||||
if !ok {
|
||||
return ApplyOutput{}, errors.New("invalid type in user_assigned_identity output: not a string")
|
||||
return ApplyOutput{}, errors.New("invalid type in user_assigned_identity_client_id output: not a string")
|
||||
}
|
||||
|
||||
rgOutput, ok := tfState.Values.Outputs["resource_group"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue