Skip to content

Commit 646a284

Browse files
committed
fix(vm): resolve pylint W0621 and flake8 E303 style issues
1 parent 85b4e38 commit 646a284

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • src/azure-cli/azure/cli/command_modules/vm

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050

5151
from .aaz.latest.vm.disk import AttachDetachDataDisk
5252
from .aaz.latest.vm import Update as UpdateVM
53-
from .aaz.latest.vm.run_command import Invoke
5453

5554
from .generated.custom import * # noqa: F403, pylint: disable=unused-wildcard-import,wildcard-import
5655
try:
@@ -6606,6 +6605,7 @@ def vm_cp(cmd, source, destination, storage_account=None, container_name='azvmcp
66066605
from azure.cli.command_modules.storage.operations.blob import upload_blob, download_blob
66076606
from azure.cli.command_modules.storage.util import create_short_lived_blob_sas_v2
66086607
from azure.cli.command_modules.storage._client_factory import cf_sa, cf_sa_for_keys, cf_blob_service
6608+
from .aaz.latest.vm.run_command import Invoke
66096609

66106610
source_vm = _parse_vm_file_path(source)
66116611
dest_vm = _parse_vm_file_path(destination)
@@ -6736,12 +6736,9 @@ def vm_cp(cmd, source, destination, storage_account=None, container_name='azvmcp
67366736
message = result['value'][0]['message']
67376737
if 'failed' in message.lower() or 'error' in message.lower():
67386738
raise CLIError("VM execution failed: {}".format(message))
6739-
67406739
if not dest_vm:
67416740
logger.info("Downloading from bridge storage to local...")
67426741
download_blob(blob_client, file_path=destination)
6743-
6744-
67456742
finally:
67466743
# Cleanup bridge storage
67476744
try:

0 commit comments

Comments
 (0)