shwstppr commented on a change in pull request #5194:
URL: https://github.com/apache/cloudstack/pull/5194#discussion_r669469938
##########
File path:
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
##########
@@ -615,10 +615,11 @@ private void
checkUnmanagedNicAndNetworkForImport(UnmanagedInstanceTO.Nic nic, N
!networkBroadcastUri.equals(String.format("vlan://%d",
nic.getVlan())))) {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR,
String.format("VLAN of network(ID: %s) %s is found different from the VLAN of
nic(ID: %s) vlan://%d during VM import", network.getUuid(),
networkBroadcastUri, nic.getNicId(), nic.getVlan()));
}
+ String pvLanType = nic.getPvlanType() == null ? "" : new
String(nic.getPvlanType().toLowerCase().charAt(0));
Review comment:
Build failing,
```suggestion
String pvLanType = nic.getPvlanType() == null ? "" :
nic.getPvlanType().toLowerCase().substring(0, 1);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]