Commit 1cde5370 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change for pcpg shared nodes; check hardware_type of virtnode even

when a specific node is provided, since the type of the virtnode is
not always exactly what the user asked for, cause of how we map
virtnode types.
parent e9cc6926
......@@ -1232,6 +1232,19 @@ sub GetTicketAuxAux($$$$$$$$$)
$node = $namemap{$node_nickname};
# Watch for pcvm type set above. If the user specified
# a hardware type for their VMs, then form a proper
# hardware specific pcvm type.
if (defined($pctype) && $pctype eq "pcvm" &&
(my $usertype =
GeniXML::FindFirst("n:hardware_type", $ref))) {
my $htype = GeniXML::GetText("name", $usertype);
if (defined($htype)) {
$pctype = "${htype}-vm";
$pctype = $node->type()
if (!defined($pctype));
Supports Markdown
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