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
98f6b70a
Commit
98f6b70a
authored
Apr 07, 2011
by
Jonathon Duerig
Browse files
Treat component_manager_id="" as undefined
parent
315fb3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniXML.pm.in
View file @
98f6b70a
...
...
@@ -304,8 +304,12 @@ sub SetExpires($$)
sub GetNodeId($)
{
my ($node) = @_;
return GetFirstText($node, "component_urn", "component_id",
"component_uuid", "uuid");
my $result = GetFirstText($node, "component_urn", "component_id",
"component_uuid", "uuid");
if ($result eq "") {
$result = undef;
}
return $result;
}
sub GetVirtualId($)
...
...
@@ -336,8 +340,13 @@ sub GetSliverId($)
sub GetManagerId($)
{
my ($node) = @_;
return GetFirstText($node, "component_manager_urn",
"component_manager_id", "component_manager_uuid");
my $result = GetFirstText($node, "component_manager_urn",
"component_manager_id",
"component_manager_uuid");
if ($result eq "") {
$result = undef;
}
return $result;
}
sub GetColocate($)
...
...
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