Fix k8s artifact url for upload 71/100871/1
authorEric Multanen <eric.w.multanen@intel.com>
Tue, 28 Jan 2020 19:02:07 +0000 (11:02 -0800)
committerEric Multanen <eric.w.multanen@intel.com>
Tue, 28 Jan 2020 19:02:07 +0000 (11:02 -0800)
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>
artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java

index 52c0617..8ad07df 100644 (file)
@@ -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");
 

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use