From: Anurag Dwivedi Date: Wed, 18 Oct 2017 13:22:29 +0000 (-0400) Subject: BUG-376 : Returning the stale vim-list (pre-refresh) incase refresh is pending X-Git-Tag: v3.0.0rc14~7^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FSO.git;a=commitdiff_plain;h=a2e42557cbf5abfa967bee73f79c2a62ddfb141e BUG-376 : Returning the stale vim-list (pre-refresh) incase refresh is pending Signed-off-by: Anurag Dwivedi --- 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"