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
667b596f
Commit
667b596f
authored
Dec 13, 2010
by
Jonathon Duerig
Browse files
Fix GetElementByVirtualId to handle rspecv2
parent
de0e5c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniXML.pm.in
View file @
667b596f
...
...
@@ -195,6 +195,14 @@ sub GetElementByVirtualId($$$)
my
($
name
,
$
type
,
$
node
)
=
@
_
;
my
@
list
=
FindNodes
(
'n:'
.$
type
.
'[@virtual_id = "'
.$
name
.
'"]'
,
$
node
)->
get_nodelist
();
if
(
scalar
(@
list
)
==
0
)
{
@
list
=
FindNodes
(
'n:'
.$
type
.
'[@nickname = "'
.$
name
.
'"]'
,
$
node
)->
get_nodelist
();
}
if
(
scalar
(@
list
)
==
0
)
{
@
list
=
FindNodes
(
'n:'
.$
type
.
'[@client_id = "'
.$
name
.
'"]'
,
$
node
)->
get_nodelist
();
}
my
$
result
=
undef
;
if
(
scalar
(@
list
)
>
0
)
{
...
...
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