Commit 7d088d4c authored by Mac Newbold's avatar Mac Newbold

It isn't a failure not to have any nodes in your expt when you call vnode...

It isn't a failure not to have any nodes in your expt when you call vnode setup. Just say so and exit successfully.
parent e8efcc83
......@@ -114,14 +114,15 @@ if (!TBAdmin($UID) &&
#
# Get the list of nodes in this experiment.
#
#
my @nodes = ExpNodes($pid, $eid);
if (! @nodes) {
die("*** $0:\n".
" No allocated nodes in experiment $pid/$eid!\n");
warn("*** $0:\n".
" No allocated nodes in experiment $pid/$eid!\n");
exit(0);
}
# Nodes on the command line. Operate only on this set.
# Nodes on the command line. Operate only on this set.
if (@ARGV) {
my %fulllist = ();
......@@ -153,7 +154,7 @@ foreach my $node (@nodes) {
my $pnode;
my $jailed;
my $allocstate;
if (! TBIsNodeVirtual($node, \$jailed)) {
next;
}
......
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