Blame SOURCES/0004-ovirt-Do-not-filter-out-DATA-storage-domains.patch

2a0fe3
From 21b482e6b85df7dca46e1dc8501b0f28ce4570a1 Mon Sep 17 00:00:00 2001
2a0fe3
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
2a0fe3
Date: Fri, 15 May 2020 10:24:08 -0300
2a0fe3
Subject: [PATCH virt-viewer] ovirt: Do not filter out DATA storage domains
2a0fe3
2a0fe3
Since ovirt 4.2 it is acceptable to have ISO images in storage domains
2a0fe3
of DATA type, while the usage of ISO type is about to be deprecated. The
2a0fe3
code now allow both types of storage domains when looking up for ISO
2a0fe3
images.
2a0fe3
2a0fe3
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/html/release_notes/deprecated_features_rhv
2a0fe3
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4-beta/html/release_notes/deprecated_features_rhv
2a0fe3
2a0fe3
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1835640
2a0fe3
2a0fe3
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2a0fe3
---
2a0fe3
 src/ovirt-foreign-menu.c | 4 ++--
2a0fe3
 1 file changed, 2 insertions(+), 2 deletions(-)
2a0fe3
2a0fe3
diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c
2a0fe3
index dc6ecf4..c31c93f 100644
2a0fe3
--- a/src/ovirt-foreign-menu.c
2a0fe3
+++ b/src/ovirt-foreign-menu.c
2a0fe3
@@ -661,8 +661,8 @@ static gboolean storage_domain_validate(OvirtForeignMenu *menu G_GNUC_UNUSED,
2a0fe3
 
2a0fe3
     g_object_get(domain, "name", &name, "type", &type, "state", &state, NULL);
2a0fe3
 
2a0fe3
-    if (type != OVIRT_STORAGE_DOMAIN_TYPE_ISO) {
2a0fe3
-        g_debug("Storage domain '%s' type is not ISO", name);
2a0fe3
+    if (type != OVIRT_STORAGE_DOMAIN_TYPE_ISO && type != OVIRT_STORAGE_DOMAIN_TYPE_DATA) {
2a0fe3
+        g_debug("Storage domain '%s' type is not ISO or DATA", name);
2a0fe3
         ret = FALSE;
2a0fe3
     }
2a0fe3
 
2a0fe3
-- 
2a0fe3
2.26.2
2a0fe3