Blame SOURCES/virt-manager-addstorage-Don-t-pass-None-to-widget.set_active.patch

7c1349
From b533019b5776207412ed1aa886d97ead2550695a Mon Sep 17 00:00:00 2001
7c1349
From: Cole Robinson <crobinso@redhat.com>
7c1349
Date: Sat, 21 Nov 2020 17:17:33 -0500
7c1349
Subject: [PATCH] addstorage: Don't pass None to widget.set_active()
7c1349
7c1349
Older pygobject can't handle it. Mentioned here:
7c1349
https://github.com/virt-manager/virt-manager/issues/188
7c1349
7c1349
Signed-off-by: Cole Robinson <crobinso@redhat.com>
7c1349
(cherry picked from commit e7222b5058c8874b15fbfd998e5eeb233f571075)
7c1349
7c1349
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2026987
7c1349
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
7c1349
---
7c1349
 virtManager/device/addstorage.py | 2 +-
7c1349
 1 file changed, 1 insertion(+), 1 deletion(-)
7c1349
7c1349
diff --git a/virtManager/device/addstorage.py b/virtManager/device/addstorage.py
7c1349
index dee0160c..49d0b693 100644
7c1349
--- a/virtManager/device/addstorage.py
7c1349
+++ b/virtManager/device/addstorage.py
7c1349
@@ -310,7 +310,7 @@ class vmmAddStorage(vmmGObjectUI):
7c1349
         detect_zeroes = disk.driver_detect_zeroes
7c1349
         ro = disk.read_only
7c1349
         share = disk.shareable
7c1349
-        removable = disk.removable
7c1349
+        removable = bool(disk.removable)
7c1349
         serial = disk.serial
7c1349
 
7c1349
         self.set_disk_bus(disk.bus)
7c1349
-- 
7c1349
2.31.1
7c1349