diff options
author | Smokowski, Steven <steve.smokowski@att.com> | 2020-05-07 18:54:21 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-05-07 18:54:21 -0400 |
commit | 98248779d65c7a8f73fa7703d025b0c97dc1eab2 (patch) | |
tree | 2cd43b723bc8885c244a8a81c5f828593078704e /adapters/mso-adapter-utils/src/main | |
parent | 5e67cc099f6bcade2f12bf9220bdf3682f2d06c1 (diff) |
add image detail endpoint to openstack proxy
Fix issue where Image had an outer wrapper
Issue-ID: SO-2910
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Ia823cf21c6014e513f49bacf84fd2a61a2724bcb
Diffstat (limited to 'adapters/mso-adapter-utils/src/main')
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java index 687afeda40..7a9fdfe70b 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java +++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java @@ -20,8 +20,6 @@ package org.onap.so.openstack.utils; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; import org.onap.so.cloud.authentication.KeystoneAuthHolder; import org.onap.so.openstack.exceptions.MsoCloudSiteNotFound; import org.onap.so.openstack.exceptions.MsoException; @@ -73,14 +71,7 @@ public class GlanceClientImpl extends MsoCommonUtils { try { String encodedName = null; if (name != null) { - try { - encodedName = - "in:\"" + URLEncoder.encode(name, "UTF-8").replace("+", "%20").replace("%3A", ":") + "\""; - } catch (UnsupportedEncodingException e) { - logger.error("Error Encoding Image Name", e); - throw new GlanceClientException("Error Endcoding Name", e); - } - + encodedName = "in:\"" + name + "\""; } Glance glanceClient = getGlanceClient(cloudSiteId, tenantId); // list is set to false, otherwise an invalid URL is appended |