Fix multple-retry bug

_worker_ips and _worker_names were not cleared upon each retry

Change-Id: Ibab069f3f483349d60e6d1321d8bcf367721c652
This commit is contained in:
Changbin Liu 2013-06-05 19:00:22 -04:00
parent f8c20af9eb
commit 85fed94b85
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ class Orchestrator(object):
self._get_server_info(self._chefserver_id))
(self._controller_ip, self._controller_name) = (
self._get_server_info(self._controller_id))
# clear content upon each time retry
self._worker_ips = []
self._worker_names = []
for _id in self._worker_ids:
(ipaddr, name) = self._get_server_info(_id)
self._worker_ips.append(ipaddr)