Commit f9bde339 authored by Roque's avatar Roque Committed by Klaus Wölfel

testnode: cleanup in slapos master communicator

parent d6f37670
...@@ -491,19 +491,10 @@ class SlapOSTester(SlapOSMasterCommunicator): ...@@ -491,19 +491,10 @@ class SlapOSTester(SlapOSMasterCommunicator):
if self.getInstanceUrlList(): if self.getInstanceUrlList():
for instance in self.getInstanceUrlList(): for instance in self.getInstanceUrlList():
if instance["title"] != instance_title: if instance["title"] != instance_title:
news = self.getNewsFromInstance(instance["href"])
instance_state = news[0]
self._request(INSTANCE_STATE_DESTROYED, instance["title"]) self._request(INSTANCE_STATE_DESTROYED, instance["title"])
news = self.getNewsFromInstance(instance["href"])
instance_state = news[0]
else: else:
root_instance = instance root_instance = instance
news = self.getNewsFromInstance(root_instance["href"])
instance_state = news[0]
self._request(INSTANCE_STATE_DESTROYED, instance_title) self._request(INSTANCE_STATE_DESTROYED, instance_title)
time.sleep(30)
news = self.getNewsFromInstance(root_instance["href"])
instance_state = news[0]
else: else:
logger.info("Instance not found") logger.info("Instance not found")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment