Commit d2a9e58f authored by Leigh B Stoller's avatar Leigh B Stoller

Capture ipassign output and send errors back to the user. Its always

a user error, although manifesting as DBQuery error (duplicate key) is
not exactly friendly.
parent 1c00ecfd
......@@ -2710,9 +2710,11 @@ sub GetTicketAuxAux($$$$$$$$$$$)
}
# Do IP assignment.
system("$IPASSIGN -d $pid $eid");
my $poutput = GeniUtil::ExecQuiet("$IPASSIGN $pid $eid");
if ($?) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef);
print STDERR $poutput;
$response = GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
$poutput);
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