Skip to content

Commit db85f56

Browse files
committed
0.54.1
1 parent f4b40e9 commit db85f56

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "mistapi"
10-
version = "0.54.0"
10+
version = "0.54.1"
1111
authors = [{name="Thomas Munzer", email="tmunzer@juniper.net"}]
1212
description = "Python package to simplify the Mist System APIs usage"
1313
keywords = ["Mist", "Juniper", "API"]

src/mistapi/__version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.54.0"
1+
__version__ = "0.54.1"
22
__author__ = "Thomas Munzer <tmunzer@juniper.net>"

src/mistapi/cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ def _select_msp(mist_session: mistapi.APISession) -> list:
116116
if resp == "q":
117117
sys.exit(0)
118118
elif resp.lower() == "n":
119-
return [priv for priv in mist_session.privileges if not priv.get("msp_id")]
119+
standalones = []
120+
for priv in mist_session.privileges:
121+
msp = [msp for msp in msp_accounts if msp.get("msp_id") == priv.get("msp_id", "xyz")]
122+
if not msp:
123+
standalones.append(priv)
124+
return standalones
125+
# return [priv for priv in mist_session.privileges if not priv.get("msp_id")]
120126
else:
121127
tested_val = _test_choice(resp, i)
122128
if tested_val >= 0:

0 commit comments

Comments
 (0)