diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-10-06 14:05:10 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-10-06 14:05:10 +0200 |
commit | 878b157b7e3a0784015a8def9f2daa4588215ebf (patch) | |
tree | 4cbef5f1eb9ca3c183d63760d9e2ce7e9ce87337 /src/main/java/org/onap | |
parent | e00f654909c75400cb881ed648a75d09767502cc (diff) |
Remove useless method
One method one private and not used anymore in the code so it
has been removed
Change-Id: Id6754eb446a781b691184ace07a68ce26c8ed684
Issue-ID: CLAMP-54
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/client/req/SdcReq.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java b/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java index 9c3f26178..cb8af0a1d 100644 --- a/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java +++ b/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java @@ -124,6 +124,11 @@ public class SdcReq { deployJsonNode.set("configuration", serviceConf); propsObject.put("deployment_JSON", deployJsonNode.toString()); blueprint = yaml.dump(loadedYaml); + // To remove new lines in blueprint for deployment_json + String[] deploymentJson = blueprint.split(" deployment_JSON:"); + String beforeJson = deploymentJson[0]; + String afterJson = deploymentJson[1].replaceAll("\\s+", " "); + blueprint = beforeJson + " deployment_JSON:" + afterJson; logger.info("value of updated Yaml File:" + blueprint); return blueprint; @@ -207,7 +212,6 @@ public class SdcReq { String svcUrl = baseUrl + "/" + serviceUUID + "/resourceInstances/" + normalizedResourceInstanceName + "/artifacts"; urlList.add(svcUrl); - } } } |