diff options
author | 2018-09-25 08:01:20 +0000 | |
---|---|---|
committer | 2018-09-25 08:01:20 +0000 | |
commit | f9e461e0b54f80d9256677f75256da3b434bd2f6 (patch) | |
tree | 9350ca0a5570fb353bb8258ba280c26fd6b6f6d6 /plugins | |
parent | 5eb7ff8f0833fed641b0e76d72fd7f4bfa3276e5 (diff) | |
parent | f3c53ad39bf85d8e808c3e53189f077ad7c95f47 (diff) |
Merge "Add .casr suffix to downloaded csar file"
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java index 2ada9fcd..0d100f8f 100644 --- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java +++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java @@ -260,7 +260,7 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo final IDistributionClientDownloadResult resultArtifact) throws ArtifactDownloadException { try { final byte[] payloadBytes = resultArtifact.getArtifactPayload(); - final File tempArtifactFile = File.createTempFile(artifact.getArtifactName(), null); + final File tempArtifactFile = File.createTempFile(artifact.getArtifactName(), ".csar"); try (FileOutputStream fileOutputStream = new FileOutputStream(tempArtifactFile)) { fileOutputStream.write(payloadBytes, 0, payloadBytes.length); return tempArtifactFile.toPath(); |