Skip to content

Commit 9145a09

Browse files
committed
PR review comments
1 parent db9e810 commit 9145a09

File tree

2 files changed

+146
-10205
lines changed

2 files changed

+146
-10205
lines changed

src/azure-cli/azure/cli/command_modules/acr/connected_registry.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ def acr_connected_registry_create(cmd, # pylint: disable=too-many-locals, too-m
7878
registry_name), yes)
7979
acr_update_custom(cmd, registry, resource_group_name, data_endpoint_enabled=True)
8080

81-
connected_registry_name = connected_registry_name.lower()
82-
parent_name = parent_name.lower() if parent_name else None
8381
mode = mode.lower()
8482
parent = None
8583
if parent_name:
@@ -181,7 +179,7 @@ def acr_connected_registry_update(cmd, # pylint: disable=too-many-locals, too-m
181179
remove_client_token_set = set(remove_client_token_list)
182180
else:
183181
remove_client_token_set = set()
184-
# check for interesaction between add and remove.
182+
# check for intersection between add and remove.
185183
duplicate_client_token = set.intersection(add_client_token_set, remove_client_token_set)
186184
if duplicate_client_token:
187185
errors = sorted(map(lambda action: action[action.rfind('/') + 1:], duplicate_client_token))
@@ -201,7 +199,7 @@ def acr_connected_registry_update(cmd, # pylint: disable=too-many-locals, too-m
201199
if add_notifications else set()
202200
remove_notifications_set = set(list(remove_notifications)) \
203201
if remove_notifications else set()
204-
# check for interesaction between add and remove.
202+
# check for intersection between add and remove.
205203
duplicate_notifications = set.intersection(add_notifications_set, remove_notifications_set)
206204
if duplicate_notifications:
207205
errors = sorted(duplicate_notifications)

0 commit comments

Comments
 (0)