Commit df211f73 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent 45bc3e41
...@@ -283,6 +283,7 @@ if ($debug) { ...@@ -283,6 +283,7 @@ if ($debug) {
# race condition window. Should probably lock instead, but thats a pain. # race condition window. Should probably lock instead, but thats a pain.
# #
foreach my $node (@nodes) { foreach my $node (@nodes) {
my $node_id = $node->node_id();
if ($debug) { print "Processing $node...\n"; } if ($debug) { print "Processing $node...\n"; }
if (keys(%physnode_updates) || @osselect_params) { if (keys(%physnode_updates) || @osselect_params) {
...@@ -302,7 +303,7 @@ foreach my $node (@nodes) { ...@@ -302,7 +303,7 @@ foreach my $node (@nodes) {
foreach my $str (@osselect_params) { foreach my $str (@osselect_params) {
if ($debug) { print "Running '$osselect $str $node'\n"; } if ($debug) { print "Running '$osselect $str $node'\n"; }
if (system("$osselect $str $node")) { if (system("$osselect $str $node_id")) {
print STDERR "*** 'os_select $str $node' failed!\n"; print STDERR "*** 'os_select $str $node' failed!\n";
$errors++; $errors++;
} }
......
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