Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF Conversions are not applied in Update function #438

Open
digna-ionos opened this issue Sep 12, 2024 · 0 comments · May be fixed by #440
Open

TF Conversions are not applied in Update function #438

digna-ionos opened this issue Sep 12, 2024 · 0 comments · May be fixed by #440

Comments

@digna-ionos
Copy link

digna-ionos commented Sep 12, 2024

Not applying the tf conversion after mashalling state map causes error when setting observation.

err = mg.(resource.Terraformed).SetObservation(stateValueMap)

Possible solution:

	stateValueMap, err = n.config.ApplyTFConversions(stateValueMap, config.FromTerraform)
	if err != nil {
		return managed.ExternalUpdate{}, errors.Wrap(err, "cannot convert the singleton lists for the updated resource state value map into embedded objects")
	}  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant