mirror of https://github.com/apache/cloudstack.git
bug 9619: handle two types of domr name
status 9619: resolved fixed
This commit is contained in:
parent
671ec62358
commit
bbc470ed4f
|
|
@ -127,7 +127,7 @@ public class VirtualMachineName {
|
|||
|
||||
public static boolean isValidRouterName(String name, String instance) {
|
||||
String[] tokens = name.split(SEPARATOR);
|
||||
if (tokens.length != 3) {
|
||||
if (tokens.length != 3 && tokens.length != 4 ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1359,6 +1359,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
Long id = vmGuru.convertToId(name);
|
||||
if (id != null) {
|
||||
map.put(id, new AgentVmInfo(entry.getKey(), vmGuru, null, entry.getValue()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue