Commit 667b596f authored by Jonathon Duerig's avatar Jonathon Duerig

Fix GetElementByVirtualId to handle rspecv2

parent de0e5c4e
......@@ -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)
{
......
Markdown is supported
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