Change sync db order and add retries for cinder client
This patch changes sync db order and adds retries for cinder python client
Related-Prod: PROD-17170
Change-Id: I26f19299ca294bb5b03c3404b03d88f86fae1d1b
diff --git a/_modules/cinderng.py b/_modules/cinderng.py
index a5c7d42..71d7c5c 100644
--- a/_modules/cinderng.py
+++ b/_modules/cinderng.py
@@ -39,7 +39,8 @@
),
'endpoint_type': profile['endpoint_type'],
'certificate': profile['certificate'],
- 'region_name': profile['region_name']
+ 'region_name': profile['region_name'],
+ 'retries': profile.get('retries', 5)
}
return credentials
@@ -56,7 +57,8 @@
auth_url=cred['auth_url'],
endpoint_type=cred['endpoint_type'],
cacert=cred['certificate'],
- region_name=cred['region_name']
+ region_name=cred['region_name'],
+ retries=cred['retries']
)
return nt