summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-03-21 17:00:08 -0500
committerJosh Kearney <josh@jk0.org>2011-03-21 17:00:08 -0500
commit7cc28482a4ebeeb5dfa44c9e1c37bb135c1c66be (patch)
tree770ae4d2bd10df19eb27258b172e129eb2b9cdd1
parentffd2bc759af4f53019838bf20a4f016a566fbbd6 (diff)
Remove dupe'd code
-rw-r--r--nova/virt/xenapi/vmops.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index 18eec9544..a5f43200d 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -86,9 +86,8 @@ class VMOps(object):
self._spawn_with_disk(instance, vdi_uuid=vdi_uuid)
def spawn_rescue(self, instance):
- """Break rescue's spawn into separate method for unit tests"""
- vdi_uuid = self.create_disk(instance)
- self._spawn_with_disk(instance, vdi_uuid=vdi_uuid)
+ """Spawn a rescue instance"""
+ self.spawn(instance)
def _spawn_with_disk(self, instance, vdi_uuid):
"""Create VM instance"""