Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix style
  • Loading branch information
Juliehzl committed May 28, 2021
commit b3594bdb3e9b127a3532b721136ed44b19ecec0e
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ def validate_source_url(cmd, namespace): # pylint: disable=too-many-statements
if uri:
if any([container, blob, snapshot, share, path, file_snapshot, source_account_name,
source_account_key]):
raise InvalidArgumentValueError(usage_string.format('Unused parameters are given in addition to the '
'source URI'))
raise InvalidArgumentValueError(usage_string.format(
'Unused parameters are given in addition to the source URI'))
if source_sas:
source_sas = source_sas.lstrip('?')
uri = '{}{}{}'.format(uri, '?', source_sas)
Expand All @@ -437,8 +437,8 @@ def validate_source_url(cmd, namespace): # pylint: disable=too-many-statements
if not valid_blob_source and not valid_file_source:
raise RequiredArgumentMissingError(usage_string.format('Neither a valid blob or file source is specified'))
if valid_blob_source and valid_file_source:
raise MutuallyExclusiveArgumentError(usage_string.format('Ambiguous parameters, both blob and file sources are '
'specified'))
raise MutuallyExclusiveArgumentError(usage_string.format(
'Ambiguous parameters, both blob and file sources are specified'))

validate_client_parameters(cmd, namespace) # must run first to resolve storage account

Expand Down