summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorDan Prince <dan.prince@rackspace.com>2011-06-13 11:06:25 -0400
committerDan Prince <dan.prince@rackspace.com>2011-06-13 11:06:25 -0400
commit2ee3d49e6c35515b9ef9d78365c3bc0ec9236b4b (patch)
tree6e2febb7953297207aef7cb4540427ebe498bdc6 /nova
parent91e34d37d2907295e892e96ca2c3039c7fbe14bf (diff)
Update xenapi/vm_utils.py so that it calls find_sr instead of get_sr.
Remove the old get_sr function which by default looked for an SR named 'slices'.
Diffstat (limited to 'nova')
-rw-r--r--nova/virt/xenapi/vm_utils.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index b9d4346e4..cb4da7fdb 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -330,12 +330,6 @@ class VMHelper(HelperBase):
return template_vm_ref, template_vdi_uuids
@classmethod
- def get_sr(cls, session, sr_label='slices'):
- """Finds the SR named by the given name label and returns
- the UUID"""
- return session.call_xenapi('SR.get_by_name_label', sr_label)[0]
-
- @classmethod
def get_sr_path(cls, session):
"""Return the path to our storage repository
@@ -790,8 +784,7 @@ class VMHelper(HelperBase):
@classmethod
def scan_default_sr(cls, session):
"""Looks for the system default SR and triggers a re-scan"""
- #FIXME(sirp/mdietz): refactor scan_default_sr in there
- sr_ref = cls.get_sr(session)
+ sr_ref = find_sr(session)
session.call_xenapi('SR.scan', sr_ref)