Commit 62a0f9ad authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Allow failure action in node:

    <emulab:failure_action action="nonfatal"/>
parent c4bcd1cc
......@@ -1449,6 +1449,21 @@ sub GetTicketAuxAux($$$$$$$$$$)
}
}
# Failure action.
my ($failure_ref) =
GeniXML::FindNodesNS("n:failure_action",
$ref,
$GeniXML::EMULAB_NS)->get_nodelist();
if (defined($failure_ref)) {
my $action = GeniXML::GetText("action", $failure_ref);
if ($action ne "nonfatal") {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Bad failure action");
goto bad;
}
$nodeblob->{'failureaction'} = $action;
}
my $virtnode = $virtexperiment->NewTableRow("virt_nodes", $nodeblob);
if (!defined($virtnode)) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
......
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