Skip to content

Commit 113bde3

Browse files
committed
Use id instead of target_schedule_id to build externalName
Signed-off-by: Alexandre Chatelain <[email protected]> Signed-off-by: Alexandre Chatelain <[email protected]>
1 parent 00a732c commit 113bde3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/externalname.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ var cliReconciledExternalNameConfigs = map[string]config.ExternalName{}
139139
func privilegedAccessGroupIDConf() config.ExternalName {
140140
e := config.IdentifierFromProvider
141141
e.GetExternalNameFn = func(tfstate map[string]any) (string, error) {
142-
target_schedule_id, ok := tfstate["target_schedule_id"]
142+
id, ok := tfstate["id"]
143143
if !ok {
144-
return "", errors.New("cannot get target_schedule_id")
144+
return "", errors.New("cannot get id")
145145
}
146146

147-
return target_schedule_id.(string), nil
147+
return id.(string), nil
148148
}
149149
e.GetIDFn = func(_ context.Context, externalName string, parameters map[string]interface{}, _ map[string]interface{}) (string, error) {
150150
groupId, ok := parameters["group_id"]

0 commit comments

Comments
 (0)