diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-09-08 12:16:19 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-09-08 17:32:00 -0400 |
commit | d073ee9a4821046de7df977571995300be827310 (patch) | |
tree | 69a8dbccb7f8e9c21a583a2cd5395da8768dcd24 /virtManager/object/domain.py | |
parent | c54da685351d74d98fe3d7a0502384245170e6b4 (diff) | |
download | virt-manager-d073ee9a4821046de7df977571995300be827310.tar.gz |
addstorage: Revive disk serial UI
coreos is going to start using disk serial for ignition disk, so
setting this in the UI for distro testing will become more common
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object/domain.py')
-rw-r--r-- | virtManager/object/domain.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index e4103d8f..7ad9de4c 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -726,7 +726,8 @@ class vmmDomain(vmmLibvirtObject): def define_disk(self, devobj, do_hotplug, path=_SENTINEL, readonly=_SENTINEL, shareable=_SENTINEL, removable=_SENTINEL, cache=_SENTINEL, - discard=_SENTINEL, detect_zeroes=_SENTINEL, bus=_SENTINEL): + discard=_SENTINEL, detect_zeroes=_SENTINEL, bus=_SENTINEL, + serial=_SENTINEL): xmlobj = self._make_xmlobj_to_define() editdev = self._lookup_device_to_define(xmlobj, devobj, do_hotplug) if not editdev: @@ -744,6 +745,8 @@ class vmmDomain(vmmLibvirtObject): if removable != _SENTINEL: editdev.removable = removable + if serial != _SENTINEL: + editdev.serial = serial or None if cache != _SENTINEL: editdev.driver_cache = cache or None if discard != _SENTINEL: |