From a2e42557cbf5abfa967bee73f79c2a62ddfb141e Mon Sep 17 00:00:00 2001 From: Anurag Dwivedi Date: Wed, 18 Oct 2017 09:22:29 -0400 Subject: [PATCH] BUG-376 : Returning the stale vim-list (pre-refresh) incase refresh is pending Signed-off-by: Anurag Dwivedi --- common/python/rift/mano/ro_account/accounts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/python/rift/mano/ro_account/accounts.py b/common/python/rift/mano/ro_account/accounts.py index 74e5ea28..57f70708 100644 --- a/common/python/rift/mano/ro_account/accounts.py +++ b/common/python/rift/mano/ro_account/accounts.py @@ -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" -- 2.17.1