Commit 7afb2499 authored by Leigh B Stoller's avatar Leigh B Stoller

Return a mapping error if we cannot allocate an address pool, due

to resource shortage.
parent 5253b0aa
......@@ -2422,8 +2422,12 @@ sub GetTicketAuxAux($$$$$$$$$$$)
}
# Allocate any public address pools.
if( $slice_experiment->AllocatePublicAddrPools() < 0 ) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
my $tmp = $slice_experiment->AllocatePublicAddrPools();
if ($tmp) {
$response =
GeniResponse->Create(($tmp < 0 ?
GENIRESPONSE_ERROR : GENIRESPONSE_NO_MAPPING),
undef,
"Could not allocate public address pools");
goto bad;
}
......
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