GabrielBrascher commented on a change in pull request #4955:
URL: https://github.com/apache/cloudstack/pull/4955#discussion_r623910727
##########
File path:
services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
##########
@@ -382,15 +347,16 @@ public boolean generateVMSetupCommand(Long ssAHostId) {
if (ssAHost.getType() != Host.Type.SecondaryStorageVM) {
return false;
}
- SecondaryStorageVmVO secStorageVm =
_secStorageVmDao.findByInstanceName(ssAHost.getName());
+ String hostName = ssAHost.getName();
+ SecondaryStorageVmVO secStorageVm =
_secStorageVmDao.findByInstanceName(hostName);
if (secStorageVm == null) {
- s_logger.warn("secondary storage VM " + ssAHost.getName() + "
doesn't exist");
+ s_logger.warn(String.format("Secondary storage VM [%s] does not
exist.", hostName));
Review comment:
Thanks @GutoVeronezi!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]