BUG-376 : Returning the stale vim-list (pre-refresh) incase refresh is pending
Signed-off-by: Anurag Dwivedi <anurag.dwivedi@riftio.com>
diff --git a/common/python/rift/mano/ro_account/accounts.py b/common/python/rift/mano/ro_account/accounts.py
index 74e5ea2..57f7070 100644
--- a/common/python/rift/mano/ro_account/accounts.py
+++ b/common/python/rift/mano/ro_account/accounts.py
@@ -103,13 +103,14 @@
details="RO account connection status check in progress"
)
try:
- self._datacenters = []
+ datacenter_copy = []
for uuid, name in self._ro_plugin._cli_api.datacenter_list():
- self._datacenters.append({
+ datacenter_copy.append({
'uuid':uuid,
'name':name
}
)
+ self._datacenters = datacenter_copy
self._status = RwRoAccountYang.YangData_RwProject_Project_RoAccountState_Account_ConnectionStatus(
status="success",
details="RO account connection status success"