Skip to content

Commit f20b92f

Browse files
[load] limit the scope of run_az_cmd import (Azure#8412)
* [load] update min required cli core version * limit the scope of offending import
1 parent 266ee45 commit f20b92f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/load/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
33
Release History
44
===============
5+
1.4.1
6+
++++++
7+
* Move the `from azure.cli.core.util import run_az_cmd` to function scope to unblock users of existing features and most of the new features. Only the high scale download files feature requires this import, and it will be fixed in the next release.
8+
9+
510
1.4.0
611
++++++
712
* Add support for multi-region load test configuration. Multi-region load test configuration can be set using `--regionwise-engines` argument in 'az load test create' and 'az load test update' commands. Multi-region load test configuration set in YAML config file under key `regionalLoadTestConfig` will also be honoured.

src/load/azext_load/data_plane/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
CLIInternalError,
1919
)
2020
from azure.mgmt.core.tools import is_valid_resource_id, parse_resource_id
21-
from azure.cli.core.util import run_az_cmd
2221
from knack.log import get_logger
2322

2423
from .models import IdentityType, AllowedFileTypes, AllowedTestTypes
@@ -181,6 +180,7 @@ def download_file(url, file_path):
181180

182181

183182
def download_from_storage_container(sas_url, path):
183+
from azure.cli.core.util import run_az_cmd
184184
logger.debug("Downloading files from storage container")
185185
cmd = ["az", "storage", "copy", "--source", sas_url, "--destination", path, "--recursive"]
186186
logger.debug("Executing command: %s", cmd)

src/load/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
# HISTORY.rst entry.
13-
VERSION = '1.4.0'
13+
VERSION = '1.4.1'
1414

1515
# The full list of classifiers is available at
1616
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)