Skip to content

Commit fd91969

Browse files
committed
release version
1 parent b5a0a3f commit fd91969

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

src/serviceconnector-passwordless/HISTORY.rst

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
33
Release History
44
===============
5+
1.0.0
6+
++++++
7+
* Release new version and make some improvements
8+
59
1.0.0
610
++++++
711
* Support function app

src/serviceconnector-passwordless/azext_serviceconnector_passwordless/_credential_free.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1020,15 +1020,15 @@ def get_identity_pid(self):
10201020
logger.warning('Enabling WebApp System Identity...')
10211021
if self.slot_name is None:
10221022
run_cli_cmd(
1023-
'az webapp identity assign --ids {}'.format(self.source_id))
1023+
'az webapp identity assign --ids "{}"'.format(self.source_id))
10241024

10251025
identity = run_cli_cmd(
1026-
'az webapp identity show --ids {}'.format(self.source_id), 15, 5, output_is_none)
1026+
'az webapp identity show --ids "{}"'.format(self.source_id), 15, 5, output_is_none)
10271027
else:
10281028
run_cli_cmd(
1029-
'az webapp identity assign --ids {} --slot {}'.format(self.source_id, self.slot_name))
1029+
'az webapp identity assign --ids "{}" --slot "{}"'.format(self.source_id, self.slot_name))
10301030
identity = run_cli_cmd(
1031-
'az webapp identity show --ids {} --slot {}'.format(self.source_id, self.slot_name), 15, 5, output_is_none)
1031+
'az webapp identity show --ids "{}" --slot "{}"'.format(self.source_id, self.slot_name), 15, 5, output_is_none)
10321032

10331033
if identity is None:
10341034
ex = CLIInternalError(

src/serviceconnector-passwordless/azext_serviceconnector_passwordless/_utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ def should_load_source(source):
3030
return should_load_source_base(source)
3131

3232

33-
def run_cli_cmd(cmd, retry=0, interval=0, should_retry_func=None):
33+
def run_cli_cmd(cmd, retry=0, interval=0, should_retry_func=None, should_return_json=True):
3434
try:
35+
if should_return_json:
36+
return run_cli_cmd_base(cmd + ' -o json', retry, interval, should_retry_func)
3537
return run_cli_cmd_base(cmd, retry, interval, should_retry_func)
3638
except CLIInternalError as e:
3739
error_code = 'Unknown'

src/serviceconnector-passwordless/azext_serviceconnector_passwordless/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# --------------------------------------------------------------------------------------------
55

66

7-
VERSION = '1.0.0'
7+
VERSION = '1.0.1'
88
NAME = 'serviceconnector-passwordless'

src/serviceconnector-passwordless/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logger.warn("Wheel is not available, disabling bdist_wheel hook")
1616

1717

18-
VERSION = '1.0.0'
18+
VERSION = '1.0.1'
1919
try:
2020
from azext_serviceconnector_passwordless.config import VERSION
2121
except ImportError:

0 commit comments

Comments
 (0)