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

Fix parsing of power parameters #96

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

skatsaounis
Copy link
Collaborator

This PR allows the handling of machines with power parameters that contain nested parameters, like IPMI workaround_flags.

Unfortunately, Terraform sdk cannot handle situations when a map contains elements of different types. Thus, with the existing implementation, we can handle only machines with power parameters which are map[string]string. As a usual design workaround, the power_parameters is turned to a schema.TypeString which includes a serialized JSON.

With the above change in the field, we are able to manage (import, create, update) machines of type IPMI.

@skatsaounis
Copy link
Collaborator Author

Consumes and depends on: canonical/gomaasclient#16

@skatsaounis skatsaounis merged commit a1a74b1 into canonical:master Oct 6, 2023
6 checks passed
@skatsaounis skatsaounis deleted the fix-power-parameters branch October 6, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants