Skip to content

Commit fad3d10

Browse files
committed
fix
1 parent 53097b9 commit fad3d10

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/azure-cli/azure/cli/command_modules/serviceconnector/_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def add_connstr_props_argument(context):
194194
def add_no_recreate_arguments(context):
195195
context.argument('no_recreate', options_list=['--no-recreate'],
196196
arg_type=get_three_state_flag(), default=False,
197-
help='Skip executing creation operation when no updates to an existing connection')
197+
help='Skip executing creation operation when no updates to an existing connection.')
198198

199199

200200
def add_target_type_argument(context, source):

‎src/azure-cli/azure/cli/command_modules/serviceconnector/_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def has_meaningful_changes(new_value, existing_value):
597597
return False
598598
if isinstance(new_value, dict) and existing_value is None:
599599
for value in new_value.values():
600-
if value is not None or value != "":
600+
if value is not None and value != "":
601601
return True
602602
return False
603603

‎src/azure-cli/azure/cli/command_modules/serviceconnector/custom.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def connection_create_func(cmd, client, # pylint: disable=too-many-locals,too-m
540540
logger.warning('Connection provisioningState is Accepted, please retry later to avoid conflict.')
541541
return linker
542542
if linker is not None and linker.get('provisioningState') == 'Succeeded' and \
543-
not compare_properties_changed(parameters, linker) and no_recreate is True:
543+
not compare_properties_changed(parameters, linker) and no_recreate:
544544
logger.warning(
545545
'Connection exists and no property to be updated, skip the update operation.')
546546
return linker

0 commit comments

Comments
 (0)