Skip to content
Snippets Groups Projects
Commit 667b596f authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fix GetElementByVirtualId to handle rspecv2

parent de0e5c4e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment