Commit d65ca782 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix to fix undefined hash access warning.

parent 37cde7f9
......@@ -2,7 +2,7 @@
#
# EMULAB-LGPL
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# Copyright (c) 2004-2009 Regents, University of California.
# All rights reserved.
#
......@@ -1032,7 +1032,7 @@ sub removeSomePortsFromVlan($$@) {
$self->debug("$id $vlan_number: @portlist\n",2);
foreach my $portIndex (@portlist) {
next unless $porthash{$portIndex};
next unless exists($porthash{$portIndex});
if (@{@$vLists[1]}[$portIndex - 1]) {
# otherwise, port is tagged, or dual; maybe should complain.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment