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
8cb6ad4d
Commit
8cb6ad4d
authored
Feb 26, 2010
by
Jonathon Duerig
Browse files
Allow user-specified types on wildcarded nodes.
parent
6a11186e
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
8cb6ad4d
...
...
@@ -796,6 +796,14 @@ sub GetTicketAuxAux($$$$$$$$)
elsif ($isupdate && exists($namemap{$node_nickname})) {
$node = $namemap{$node_nickname};
}
# If the node still isn'
t
bound
and
doesn
't have a pctype,
# use the user-specified one.
if (! defined($node) && ! defined($pctype)) {
my $usertype = GeniXML::FindFirst("n:node_type", $ref);
if (defined($usertype)) {
$pctype = GeniXML::GetText("type_name", $usertype);
}
}
}
else {
$node = GeniUtil::LookupNode($resource_uuid);
...
...
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