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