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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ip_addresses_share to remove shared IPs #316

Merged
merged 4 commits into from
Aug 15, 2023
Merged

Conversation

yec-akamai
Copy link
Contributor

馃摑 Description

Fix an issue in ip_addresses_share to allow it unshare IPs.

In the API doc, entering an empty IP array is allowed and it means removing the shared IPs from the Linode. In the previous implementation, we always looked for ips[0] when building the request param. It brought the index out of range error when an empty IP array is given.

鉁旓笍 How to Test

tox

@yec-akamai yec-akamai requested a review from a team as a code owner August 14, 2023 21:37
@zliang-akamai zliang-akamai requested a review from a team August 14, 2023 22:51
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

LGTM!

@yec-akamai yec-akamai merged commit 12c60ef into dev Aug 15, 2023
9 checks passed
@yec-akamai yec-akamai deleted the fix-ip-addresses-share branch August 15, 2023 15:48
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.

None yet

3 participants