Blame SOURCES/0037-v2v-rhv-plugin-fix-DC-search-string.patch
|
|
d0ea73 |
From c0f9ab66655ec5ca3f065357d6797d0061f04fe0 Mon Sep 17 00:00:00 2001
|
|
|
d0ea73 |
From: Daniel Erez <derez@redhat.com>
|
|
|
d0ea73 |
Date: Tue, 24 Jul 2018 19:16:10 +0300
|
|
|
d0ea73 |
Subject: [PATCH] v2v: rhv plugin - fix DC search string
|
|
|
d0ea73 |
|
|
|
d0ea73 |
Search for DC by 'storage.name=' to make it explicit.
|
|
|
d0ea73 |
I.e. "storage=" uses regex, so similar names can be
|
|
|
d0ea73 |
found in the search query. For example, searching for
|
|
|
d0ea73 |
a domain named FCSD, will find FCSD1 as well.
|
|
|
d0ea73 |
---
|
|
|
d0ea73 |
v2v/rhv-upload-plugin.py | 2 +-
|
|
|
d0ea73 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d0ea73 |
|
|
|
d0ea73 |
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
index 931fcfaa2..8274f1ee1 100644
|
|
|
d0ea73 |
--- a/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
+++ b/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
@@ -72,7 +72,7 @@ def find_host(connection):
|
|
|
d0ea73 |
system_service = connection.system_service()
|
|
|
d0ea73 |
storage_name = params['output_storage']
|
|
|
d0ea73 |
data_centers = system_service.data_centers_service().list(
|
|
|
d0ea73 |
- search='storage=%s' % storage_name,
|
|
|
d0ea73 |
+ search='storage.name=%s' % storage_name,
|
|
|
d0ea73 |
case_sensitive=False,
|
|
|
d0ea73 |
)
|
|
|
d0ea73 |
if len(data_centers) == 0:
|
|
|
d0ea73 |
--
|
|
|
d0ea73 |
2.20.1
|
|
|
d0ea73 |
|