bug 9619: handle two types of domr name

status 9619: resolved fixed
This commit is contained in:
anthony 2011-04-27 18:43:13 -07:00
parent 671ec62358
commit bbc470ed4f
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}
}
}