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 issue causing "cannot set some dhcp options to null in network resource" #241

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

nvthongswansea
Copy link
Member

Changes:

  • Upgrade gsclient-go v3.14.0.
  • Replace UpdateNetwork with PutUpdateNetwork, so some dhcp options can be set to null in network resource.

@nvthongswansea nvthongswansea self-assigned this Sep 25, 2023
dhcpGateway := d.Get("dhcp_gateway").(string)

dhcpGateway, isSet := d.Get("dhcp_gateway").(string)
if isSet && dhcpGateway != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I user, I've to set the dhcp_gateway to None/null in the TF to unset the value. is that correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Either you set to null or remove the field from the tf file.

@nvthongswansea nvthongswansea merged commit d2bc01b into master Sep 25, 2023
@nvthongswansea nvthongswansea deleted the bugfix/cannot-set-dhcp-null branch September 25, 2024 18:24
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