Skip to content

Commit

Permalink
Merge pull request #4000 from nanli1/add_support_for_disk_enryption_a…
Browse files Browse the repository at this point in the history
…ttrs

add support for disk encryption attrs attributes
  • Loading branch information
chloerh authored Oct 11, 2024
2 parents 077261a + f4fe2dc commit d8cf4ea
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 d8cf4ea

Please sign in to comment.