Change in vdsm[master]: vmxml: move metadata handling into helpers

fromani at redhat.com fromani at redhat.com
Thu May 12 14:09:03 UTC 2016


Francesco Romani has uploaded a new change for review.

Change subject: vmxml: move metadata handling into helpers
......................................................................

vmxml: move metadata handling into helpers

to make room for future users of the `metadata' section,
we split the handler method in submethods.

Change-Id: Ifb931f33ab83577ae6913ce8e99e6654a2183305
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/vmxml.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/80/57380/1

diff --git a/vdsm/virt/vmxml.py b/vdsm/virt/vmxml.py
index 12a57b9..d187992 100644
--- a/vdsm/virt/vmxml.py
+++ b/vdsm/virt/vmxml.py
@@ -242,12 +242,15 @@
         """
 
         metadata = Element('metadata')
+        self._appendMetadataQOS(metadata)
+        self.dom.appendChild(metadata)
+
+    def _appendMetadataQOS(self, metadata):
         metadata.appendChild(Element(METADATA_VM_TUNE_PREFIX + ':' +
                                      METADATA_VM_TUNE_ELEMENT,
                                      namespaceUri=METADATA_VM_TUNE_URI))
         self.dom.setAttr('xmlns:' + METADATA_VM_TUNE_PREFIX,
                          METADATA_VM_TUNE_URI)
-        self.dom.appendChild(metadata)
 
     def appendOs(self, use_serial_console=False):
         """


-- 
To view, visit https://gerrit.ovirt.org/57380
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb931f33ab83577ae6913ce8e99e6654a2183305
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list