Skip to content
Snippets Groups Projects
Commit 2d6fd537 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Bug Fix: The maximum_nodes slot in the experiments table defaults to

null, so need to check that before using it.
parent e435945d
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -788,7 +788,9 @@ sub GenDefsFile($)
# NS file is re-parsed to pick up additional info.
#
my $maxnodes = 0;
if (defined($experiment) && $experiment->elabinelab()) {
if (defined($experiment) && $experiment->elabinelab() &&
defined($experiment->maximum_nodes())) {
# The DB default is null.
$maxnodes = $experiment->maximum_nodes();
}
print TCL "set elabinelab_maxpcs $maxnodes\n\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment