Skip to content

Commit

Permalink
when specifying XML for the latent virtual slave, a callback still
Browse files Browse the repository at this point in the history
needs to be used to get the Domain object so the slave can be
shutdown when the test is completed
  • Loading branch information
Charles Hardin committed Oct 29, 2011
1 parent 518fdac commit 3b3fc2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion master/buildbot/libvirtbuildslave.py
Expand Up @@ -195,7 +195,12 @@ def start_instance(self, build):

def _start(res):
if self.xml:
return self.connection.create(self.xml)
d = self.connection.create(self.xml)
def _xml_start(res):
self.domain = res
return
d.addCallback(_xml_start)
return d
d = self.connection.lookupByName(self.name)
def _really_start(res):
self.domain = res
Expand Down

0 comments on commit 3b3fc2e

Please sign in to comment.