Skip to content

Commit 204fd5c

Browse files
committed
merge: fix forward merge import issue
Fixes build failure on main branch Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent c84198d commit 204fd5c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

server/src/main/java/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@
166166
import com.cloud.user.Account;
167167
import com.cloud.user.AccountManager;
168168
import com.cloud.utils.Ternary;
169-
import com.cloud.utils.StringUtils;
170169
import com.cloud.utils.UriUtils;
171170
import com.cloud.utils.component.Manager;
172171
import com.cloud.utils.component.ManagerBase;
@@ -698,11 +697,11 @@ private List<HostVO> discoverHostsFull(final Long dcId, final Long podId, Long c
698697
List<String> skipList = Arrays.asList(HypervisorType.VMware.name().toLowerCase(Locale.ROOT), Type.SecondaryStorage.name().toLowerCase(Locale.ROOT));
699698
if (!skipList.contains(hypervisorType.toLowerCase(Locale.ROOT))) {
700699
if (HypervisorType.KVM.toString().equalsIgnoreCase(hypervisorType)) {
701-
if (org.apache.commons.lang3.StringUtils.isBlank(username)) {
700+
if (StringUtils.isBlank(username)) {
702701
throw new InvalidParameterValueException("Username need to be provided.");
703702
}
704703
} else {
705-
if (org.apache.commons.lang3.StringUtils.isBlank(username) || org.apache.commons.lang3.StringUtils.isBlank(password)) {
704+
if (StringUtils.isBlank(username) || StringUtils.isBlank(password)) {
706705
throw new InvalidParameterValueException("Username and Password need to be provided.");
707706
}
708707
}

utils/src/main/java/com/cloud/utils/ssh/SSHCmdHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.apache.commons.lang3.StringUtils;
2727
import org.apache.log4j.Logger;
2828

29-
import org.apache.commons.lang3.StringUtils;
3029
import com.trilead.ssh2.ChannelCondition;
3130
import com.trilead.ssh2.Session;
3231

0 commit comments

Comments
 (0)