Fix: Cannot import Vmware instances (#6384)

This commit is contained in:
Nicolas Vazquez 2022-05-13 07:46:53 -03:00 committed by GitHub
parent 867cb30efb
commit 07cabb5890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4279,11 +4279,11 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
vm.details.putAll(details);
}
if (sshPublicKeys != "") {
if (StringUtils.isNotBlank(sshPublicKeys)) {
vm.setDetail(VmDetailConstants.SSH_PUBLIC_KEY, sshPublicKeys);
}
if (sshkeypairs != "") {
if (StringUtils.isNotBlank(sshkeypairs)) {
vm.setDetail(VmDetailConstants.SSH_KEY_PAIR_NAMES, sshkeypairs);
}