BUG-376 : Returning the stale vim-list (pre-refresh) incase refresh is pending 98/5598/1
authorAnurag Dwivedi <anurag.dwivedi@riftio.com>
Wed, 18 Oct 2017 13:22:29 +0000 (09:22 -0400)
committerAnurag Dwivedi <anurag.dwivedi@riftio.com>
Wed, 18 Oct 2017 13:22:29 +0000 (09:22 -0400)
Signed-off-by: Anurag Dwivedi <anurag.dwivedi@riftio.com>
common/python/rift/mano/ro_account/accounts.py

index 74e5ea2..57f7070 100644 (file)
@@ -103,13 +103,14 @@ class ROAccount(object):
                 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"