Commit 2b1d4c3c authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix, kill dead code.

parent 83996a69
...@@ -52,16 +52,6 @@ BEGIN { use emutil; ...@@ -52,16 +52,6 @@ BEGIN { use emutil;
# Manual # Manual
my $debug = 0; my $debug = 0;
# Little helper and debug function.
sub mysystem($)
{
my ($command) = @_;
print STDERR "Running '$command'\n"
if ($debug);
return system($command);
}
# #
# Lookup interfaces for a node and create a list of class instances to return. # Lookup interfaces for a node and create a list of class instances to return.
# When using this interface we assume that this is the node side and # When using this interface we assume that this is the node side and
...@@ -503,7 +493,7 @@ sub Create($$$) ...@@ -503,7 +493,7 @@ sub Create($$$)
"where node_id='$node_id' and iface='$iface'"); "where node_id='$node_id' and iface='$iface'");
if ($query_result->numrows) { if ($query_result->numrows) {
DBQueryWarn("unlock tables"); DBQueryWarn("unlock tables");
return Interface->Lookup($node_id, $iface); return Interface->LookupByIface($node_id, $iface);
} }
# #
......
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