You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the use of a singleton C_DEFAULT_ARGS in pycentral.base_utils is causing an issue when using multiple API connections (e.g. when connecting multiple times with different credentials).
ArubaCentralBase.init makes a call to base_utils.parseInputArgs() to get a clean set of central_info parameters. Unfortunately, parseInputArgs() uses the same return dictionary for all calls. So, calling parseInputArgs() with different values affects all previous calls.
In parseInputArgs(), the line:
default_dict = C_DEFAULT_ARGS
can be replaced by:
default_dict = dict(C_DEFAULT_ARGS)
Thanks!
The text was updated successfully, but these errors were encountered:
I just took a look at the latest 1.0.0 release and it looks like this has been fixed. No idea if it was due to this ticket or not, but I'm glad it's fixed.
I believe the use of a singleton C_DEFAULT_ARGS in pycentral.base_utils is causing an issue when using multiple API connections (e.g. when connecting multiple times with different credentials).
ArubaCentralBase.init makes a call to base_utils.parseInputArgs() to get a clean set of central_info parameters. Unfortunately, parseInputArgs() uses the same return dictionary for all calls. So, calling parseInputArgs() with different values affects all previous calls.
In parseInputArgs(), the line:
default_dict = C_DEFAULT_ARGS
can be replaced by:
default_dict = dict(C_DEFAULT_ARGS)
Thanks!
The text was updated successfully, but these errors were encountered: