From f1f52b3ccf0ab78007a98947211b4fcdfd54b5e6 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Tue, 28 Jan 2020 11:02:07 -0800 Subject: Fix k8s artifact url for upload Fix the broker to upload to the correct name based on vfmodule model invariant and version ids. Change-Id: I45e2fe845d3f61d78a5d1499fd0aa5c0b4475a34 Issue-ID: MULTICLOUD-982 Signed-off-by: Eric Multanen --- .../onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java b/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java index 52c0617..8ad07df 100644 --- a/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java +++ b/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java @@ -130,8 +130,8 @@ public class K8sArtifactForwarder implements ArtifactForwarder { } private boolean uploadArtifact(VfModuleModel vfModule) { - String url = BASE_PATH + "/" + vfModule.getVfModuleModelName() + "/" - + vfModule.getVfModuleModelVersion() + "/content"; + String url = BASE_PATH + "/" + vfModule.getVfModuleModelInvariantUUID() + "/" + + vfModule.getVfModuleModelUUID() + "/content"; HttpPost httpPost = new HttpPost(url); httpPost.addHeader("content-type", "application/x-www-form-urlencoded;charset=utf-8"); -- cgit 1.2.3-korg