Skip to content

Commit c6b3083

Browse files
committed
fixed per suggestions
1 parent 5ac8c50 commit c6b3083

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/authV2/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
1.0.1
7+
++++++
8+
* Fix excluded paths parsing in `az webapp auth update` command.
9+
610
1.0.0
711
++++++
812
* Update module documentation.

src/authV2/azext_authV2/custom.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ def update_auth_settings_v2(cmd, resource_group_name, name, set_string=None, ena
160160
if "globalValidation" not in existing_auth.keys():
161161
existing_auth["globalValidation"] = {}
162162
try:
163-
if isinstance(json.loads(excluded_paths), list):
164-
excluded_paths_list = json.loads(excluded_paths)
165-
else:
166-
excluded_paths_list = excluded_paths.split(",")
163+
parsed = json.loads(excluded_paths)
164+
excluded_paths_list = parsed if isinstance(parsed, list) else excluded_paths.split(",")
167165
except json.JSONDecodeError:
168166
excluded_paths_list = excluded_paths.split(",")
169167

src/authV2/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from distutils import log as logger
1515
logger.warn("Wheel is not available, disabling bdist_wheel hook")
1616

17-
VERSION = '1.0.0'
17+
VERSION = '1.0.1'
1818

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

0 commit comments

Comments
 (0)