Skip to content

Commit

Permalink
add support for disk encryption attrs attributes
Browse files Browse the repository at this point in the history
Signed-off-by: nanli <[email protected]>
  • Loading branch information
nanli1 committed Sep 12, 2024
1 parent 9403e81 commit f4fe2dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virttest/libvirt_xml/devices/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ class Encryption(base.base.LibvirtXMLBase):
dict, keys: type, uuid
"""

__slots__ = ("encryption", "secret")
__slots__ = ("encryption", "secret", "attrs")

def __init__(self, virsh_instance=base.base.virsh):
accessors.XMLAttribute(
Expand All @@ -657,6 +657,9 @@ def __init__(self, virsh_instance=base.base.virsh):
accessors.XMLElementDict(
"secret", self, parent_xpath="/", tag_name="secret"
)
accessors.XMLElementDict(
"attrs", self, parent_xpath="/", tag_name="encryption"
)
super(self.__class__, self).__init__(virsh_instance=virsh_instance)
self.xml = "<encryption/>"

Expand Down

0 comments on commit f4fe2dc

Please sign in to comment.