diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-30 12:54:03 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-30 12:54:03 -0700 |
| commit | c599914304b262067c19b2968ab50826b4d9bcd3 (patch) | |
| tree | bd4aef6864b9056f6c0ecf045a8af8b14df978a6 | |
| parent | dc9f6bc448b62941187305663f7099f07ad69fbe (diff) | |
Removed duplicate toXml method
| -rw-r--r-- | nova/virt/libvirt_conn.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 43b5eded2..6bc5ebf89 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -228,20 +228,6 @@ class LibvirtConnection(object): return os.path.abspath(os.path.join(instance.datamodel['basepath'], path)) - def toXml(self, instance): - # TODO(termie): cache? - logging.debug("Starting the toXML method") - libvirt_xml = open(FLAGS.libvirt_xml_template).read() - xml_info = instance.datamodel.copy() - # TODO(joshua): Make this xml express the attached disks as well - - # TODO(termie): lazy lazy hack because xml is annoying - xml_info['nova'] = json.dumps(instance.datamodel.copy()) - libvirt_xml = libvirt_xml % xml_info - logging.debug("Finished the toXML method") - - return libvirt_xml - def toXml(self): # TODO(termie): cache? logging.debug("Starting the toXML method") |
