Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
8b9e4dee
Commit
8b9e4dee
authored
Sep 23, 2011
by
Leigh B Stoller
Browse files
When a hardware type is supplied for an openvz node, form a proper
node type (so, d710 becomes d710-vm).
parent
b13ca759
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
8b9e4dee
...
...
@@ -1050,7 +1050,13 @@ sub GetTicketAuxAux($$$$$$$$$)
} else {
my $usertype = GeniXML::FindFirst("n:hardware_type", $ref);
if (defined($usertype)) {
$pctype = GeniXML::GetText("name", $usertype);
#
# Watch for pcvm type set above. If the user specified
# a hardware type for their VMs, then form a proper
# hardware specific pcvm type.
#
my $pt = GeniXML::GetText("name", $usertype);
$pctype = ($pctype eq "pcvm" ? "${pt}-vm" : $pt);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment