Commit e42f02eb authored by Leigh Stoller's avatar Leigh Stoller

Exit with non-zero exitcode if overbooked.

parent 772c047b
#!/usr/bin/perl -w
#
# Copyright (c) 2016 University of Utah and the Flux Group.
# Copyright (c) 2016-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -337,6 +337,7 @@ if( $free >= 0 ) {
} else {
print "Overbooked by " . -$free . " node";
print ( $free == -1 ? ".\n" : "s.\n" );
exit(1);
}
exit( 0 );
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