DaanHoogland commented on a change in pull request #2995: Improvements on
upload direct download certificates
URL: https://github.com/apache/cloudstack/pull/2995#discussion_r230784363
##########
File path: agent/src/com/cloud/agent/Agent.java
##########
@@ -697,16 +697,34 @@ private Answer
setupDirectDownloadCertificate(SetupDirectDownloadCertificate cmd
final String keyStoreFile = agentFile.getParent() + "/" +
KeyStoreUtils.KS_FILENAME;
- String cerFile = agentFile.getParent() + "/" + certificateName +
".cer";
- Script.runSimpleBashScript(String.format("echo '%s' > %s",
certificate, cerFile));
+ String cerFile = agentFile.getParent() + "/" + "CSCERTIFICATE-" +
certificateName;
+ s_logger.debug("Creating temporary certificate file into: " + cerFile);
+ int result =
Script.runSimpleBashScriptForExitValue(String.format("echo '%s' > %s",
certificate, cerFile));
Review comment:
handling a result is always good 👍
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services