Remove salt aux kwargs in wait_for_api_ready
we do this in any other method in send decorator, but this function
is not using that decorator
Closes-Issue: PROD-35762
Change-Id: I4555e12292166740be32f8032fa89ab977c4ce70
diff --git a/_modules/neutronv2/common.py b/_modules/neutronv2/common.py
index 88c08b6..232112b 100644
--- a/_modules/neutronv2/common.py
+++ b/_modules/neutronv2/common.py
@@ -120,7 +120,11 @@
return wrap
def wait_for_api_ready(cloud_name, retries=1, retry_timeout=10, **kwargs):
-
+ # Remove salt internal kwargs
+ kwarg_keys = list(kwargs.keys())
+ for k in kwarg_keys:
+ if k.startswith('__'):
+ kwargs.pop(k)
adapter = _get_raw_client(cloud_name)
response = None
for i in range(1, retries+1):