fix NPE when stopvm

This commit is contained in:
Edison Su 2011-06-15 15:28:30 -04:00
parent cab765f85e
commit 1fa00d14b1
1 changed files with 0 additions and 6 deletions

View File

@ -1988,12 +1988,6 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
try {
Connect conn = LibvirtConnection.getConnection();
String macAddress = null;
if (vmName.startsWith("i-")) {
List<InterfaceDef> nics = getInterfaces(conn, vmName);
macAddress = nics.get(0).getMacAddress();
}
destroy_network_rules_for_vm(conn, vmName);
String result = stopVM(conn, vmName, defineOps.UNDEFINE_VM);