Commit ad99f068 authored by Jonathon Duerig's avatar Jonathon Duerig

Insert a sliver_type of 'raw-pc' if sliver type is not specified.

parent fb23047b
......@@ -999,7 +999,11 @@ sub GetTicketAuxAux($$$$$$$$$)
goto bad;
}
$exclusive = 1;
if (! GeniXML::SetVirtualizationSubtype($ref, "raw")) {
my $subtype = "raw-pc";
if (GeniXML::IsVersion0($ref)) {
$subtype = "raw";
}
if (! GeniXML::SetVirtualizationSubtype($ref, $subtype)) {
$response = GeniResponse->Create(GENIRESPONSE_BADARGS,
undef,
"Malformed rspec: Cannot set virtualization_type to raw");
......
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