From ee5bd671f3b5ff01ce35def3b0d4d079f48184f6 Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Wed, 24 Mar 2021 11:03:41 +0000
Subject: [PATCH] added quotes to search by name

---
 inventory_provider/db/ims.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inventory_provider/db/ims.py b/inventory_provider/db/ims.py
index d23557dc..3f50cc1c 100644
--- a/inventory_provider/db/ims.py
+++ b/inventory_provider/db/ims.py
@@ -289,7 +289,7 @@ class IMS(object):
             name,
             navigation_properties=None,
             use_cache=False):
-        url = f'{entity}/byname/{name}'
+        url = f'{entity}/byname/"{name}"'
         return self._get_entity(url, None, navigation_properties, use_cache)
 
     def get_filtered_entities(
-- 
GitLab