-
Notifications
You must be signed in to change notification settings - Fork 676
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
Undo gateway change #5570
Undo gateway change #5570
Conversation
The networking team changed their mind wants to continue allowing gateway updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body.IPAddressRanges = getIPAddressRanges(d.Get(helpers.PINetworkIPAddressRange).([]interface{})) | ||
} | ||
if d.HasChange(helpers.PINetworkGateway) { | ||
body.Gateway = flex.PtrToString(d.Get(helpers.PINetworkGateway).(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why using PtrToString?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body.Gateway is *string and PtrToString takes a string and outputs a *string. I think the flex function might be named backwards.
The networking team changed their mind wants to continue allowing gateway updates. This undoes part of the changes in #5503.