mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
merge: fix forward merge import issue
Fixes build failure on main branch Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c84198d76d
commit
204fd5cda8
@ -166,7 +166,6 @@ import com.cloud.storage.dao.VMTemplateDao;
|
|||||||
import com.cloud.user.Account;
|
import com.cloud.user.Account;
|
||||||
import com.cloud.user.AccountManager;
|
import com.cloud.user.AccountManager;
|
||||||
import com.cloud.utils.Ternary;
|
import com.cloud.utils.Ternary;
|
||||||
import com.cloud.utils.StringUtils;
|
|
||||||
import com.cloud.utils.UriUtils;
|
import com.cloud.utils.UriUtils;
|
||||||
import com.cloud.utils.component.Manager;
|
import com.cloud.utils.component.Manager;
|
||||||
import com.cloud.utils.component.ManagerBase;
|
import com.cloud.utils.component.ManagerBase;
|
||||||
@ -698,11 +697,11 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||||||
List<String> skipList = Arrays.asList(HypervisorType.VMware.name().toLowerCase(Locale.ROOT), Type.SecondaryStorage.name().toLowerCase(Locale.ROOT));
|
List<String> skipList = Arrays.asList(HypervisorType.VMware.name().toLowerCase(Locale.ROOT), Type.SecondaryStorage.name().toLowerCase(Locale.ROOT));
|
||||||
if (!skipList.contains(hypervisorType.toLowerCase(Locale.ROOT))) {
|
if (!skipList.contains(hypervisorType.toLowerCase(Locale.ROOT))) {
|
||||||
if (HypervisorType.KVM.toString().equalsIgnoreCase(hypervisorType)) {
|
if (HypervisorType.KVM.toString().equalsIgnoreCase(hypervisorType)) {
|
||||||
if (org.apache.commons.lang3.StringUtils.isBlank(username)) {
|
if (StringUtils.isBlank(username)) {
|
||||||
throw new InvalidParameterValueException("Username need to be provided.");
|
throw new InvalidParameterValueException("Username need to be provided.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (org.apache.commons.lang3.StringUtils.isBlank(username) || org.apache.commons.lang3.StringUtils.isBlank(password)) {
|
if (StringUtils.isBlank(username) || StringUtils.isBlank(password)) {
|
||||||
throw new InvalidParameterValueException("Username and Password need to be provided.");
|
throw new InvalidParameterValueException("Username and Password need to be provided.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,7 +26,6 @@ import org.apache.cloudstack.utils.security.KeyStoreUtils;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import com.trilead.ssh2.ChannelCondition;
|
import com.trilead.ssh2.ChannelCondition;
|
||||||
import com.trilead.ssh2.Session;
|
import com.trilead.ssh2.Session;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user