Skip to content

Conversation

rlrossiter
Copy link

The SL API for editing security group rules allows you to unset string
values by passing in an empty string (''). The edit_securitygroup_rule()
function skipped over any values that were falsy (because if they
weren't set in the arguments, we don't want to change them).
Unfortunately, this caused values that were an empty string to also get
skipped over and not get unset in the API. So edit needs to check
explicitly for None (don't change) in order to get skipped over in
passing to the API.

The SL API for editing security group rules allows you to unset string
values by passing in an empty string (''). The edit_securitygroup_rule()
function skipped over any values that were falsy (because if they
weren't set in the arguments, we don't want to change them).
Unfortunately, this caused values that were an empty string to also get
skipped over and not get unset in the API. So edit needs to check
explicitly for None (don't change) in order to get skipped over in
passing to the API.
@rlrossiter
Copy link
Author

#932

@bvanhav
Copy link

bvanhav commented Jan 24, 2018

Looks like this change successfully addresses my concern in #932

@allmightyspiff allmightyspiff self-requested a review January 24, 2018 20:34
@allmightyspiff allmightyspiff merged commit 23dab1e into softlayer:master Jan 24, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 86.945% when pulling 950d200 on rlrossiter:edit-rule-fix into 1584ce0 on softlayer:master.

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.

4 participants