|
|
d0ea73 |
From bc2ba2f47ba8a1f88ea6f3c14addd60e84423adf Mon Sep 17 00:00:00 2001
|
|
|
d0ea73 |
From: Daniel Erez <derez@redhat.com>
|
|
|
d0ea73 |
Date: Wed, 25 Jul 2018 11:24:33 +0300
|
|
|
d0ea73 |
Subject: [PATCH] v2v: rhv plugin - case-sensitive search queries
|
|
|
d0ea73 |
|
|
|
d0ea73 |
Changed both search queries to case-sensitive (to ensure an exact match).
|
|
|
d0ea73 |
---
|
|
|
d0ea73 |
v2v/rhv-upload-plugin.py | 4 ++--
|
|
|
d0ea73 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
d0ea73 |
|
|
|
d0ea73 |
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
index 8274f1ee1..4fad27fb8 100644
|
|
|
d0ea73 |
--- a/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
+++ b/v2v/rhv-upload-plugin.py
|
|
|
d0ea73 |
@@ -73,7 +73,7 @@ def find_host(connection):
|
|
|
d0ea73 |
storage_name = params['output_storage']
|
|
|
d0ea73 |
data_centers = system_service.data_centers_service().list(
|
|
|
d0ea73 |
search='storage.name=%s' % storage_name,
|
|
|
d0ea73 |
- case_sensitive=False,
|
|
|
d0ea73 |
+ case_sensitive=True,
|
|
|
d0ea73 |
)
|
|
|
d0ea73 |
if len(data_centers) == 0:
|
|
|
d0ea73 |
# The storage domain is not attached to a datacenter
|
|
|
d0ea73 |
@@ -87,7 +87,7 @@ def find_host(connection):
|
|
|
d0ea73 |
hosts_service = system_service.hosts_service()
|
|
|
d0ea73 |
hosts = hosts_service.list(
|
|
|
d0ea73 |
search="hw_id=%s and datacenter=%s and status=Up" % (vdsm_id, datacenter.name),
|
|
|
d0ea73 |
- case_sensitive=False,
|
|
|
d0ea73 |
+ case_sensitive=True,
|
|
|
d0ea73 |
)
|
|
|
d0ea73 |
if len(hosts) == 0:
|
|
|
d0ea73 |
# Couldn't find a host that's fulfilling the following criteria:
|
|
|
d0ea73 |
--
|
|
|
6b9fda |
2.21.0
|
|
|
d0ea73 |
|