summaryrefslogtreecommitdiffstats
path: root/artifactbroker/plugins/forwarding-plugins
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2020-01-28 11:02:07 -0800
committerEric Multanen <eric.w.multanen@intel.com>2020-01-28 11:02:07 -0800
commitf1f52b3ccf0ab78007a98947211b4fcdfd54b5e6 (patch)
tree6a0bd2525d913fff457ae7727110e31193adea4c /artifactbroker/plugins/forwarding-plugins
parentdbedced3ac20d1fa8fa28663041cc4518e8bc8d1 (diff)
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 <eric.w.multanen@intel.com>
Diffstat (limited to 'artifactbroker/plugins/forwarding-plugins')
-rw-r--r--artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java4
1 files 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");