File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77
88[project ]
99name = " mistapi"
10- version = " 0.54.0 "
10+ version = " 0.54.1 "
1111authors = [{name =" Thomas Munzer" , email =" tmunzer@juniper.net" }]
1212description = " Python package to simplify the Mist System APIs usage"
1313keywords = [" Mist" , " Juniper" , " API" ]
Original file line number Diff line number Diff line change 1- __version__ = "0.54.0 "
1+ __version__ = "0.54.1 "
22__author__ = "Thomas Munzer <tmunzer@juniper.net>"
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments