-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Network] Fix Network Bugs 1239, 1240 #1274
Conversation
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.
Left one comment to clarify
@@ -63,7 +63,9 @@ def delete_func(resource_group_name, resource_name, item_name): | |||
keep_items = \ | |||
[x for x in item.__getattribute__(prop) if x.name.lower() != item_name.lower()] | |||
_set_param(item, prop, keep_items) | |||
return client.create_or_update(resource_group_name, resource_name, item) | |||
result = client.create_or_update(resource_group_name, resource_name, item).result() | |||
if next((x for x in getattr(result, prop) if x.name == item_name), None): |
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.
Please consider whether the item_name
could have casing difference. If yes, do case insensitive comparison
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.
Great catch!
@yugangw-msft I made the case insensitive comparison and fixed up the VS project file for the perf change PR. I plan to merge once CI finishes. |
|
Fixes #1239, fixes #1240.
Plan to defer merging this until #1059 is merged.