Skip to content

Commit

Permalink
Fixup: xml missing from definition of VMPerfXML.EventXML
Browse files Browse the repository at this point in the history
Set default xml to EventXML instance to fix the issue of xml missing.

Signed-off-by: Haijiao Zhao <[email protected]>
  • Loading branch information
chloerh committed Oct 12, 2021
1 parent 1c6395e commit f383c2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virttest/libvirt_xml/vm_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3607,6 +3607,7 @@ def __init__(self, virsh_instance=base.virsh):
attribute='enabled')
super(VMPerfXML.EventXML, self).__init__(
virsh_instance=virsh_instance)
self.xml = '<event/>'

def update(self, attr_dict):
for attr, value in list(attr_dict.items()):
Expand Down

0 comments on commit f383c2a

Please sign in to comment.