Skip to content
GitLab
Menu
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
3b4a1b38
Commit
3b4a1b38
authored
Apr 06, 2010
by
Srikanth Chikkulapelly
Browse files
Fixed a bug in PolicyExists. It was calling FindNodesNs with xml string not with xml element.
parent
d0258418
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniXML.pm.in
View file @
3b4a1b38
...
...
@@ -327,8 +327,11 @@ sub PolicyExists($$)
return 0
if (!ref($credential) or !defined($policy));
my $extensions_elem = GeniXML::Parse($credential->{'
extensions
'});
return 0
if (!defined($extensions_elem));
my $policies = GeniXML::FindNodesNS("//n:policy_exceptions/*",
$
credential->{'
extensions
'}
, $GeniUtil::EXTENSIONS_NS);
$extensions
_elem
, $GeniUtil::EXTENSIONS_NS);
foreach my $epolicy ($policies->get_nodelist) {
if ($policy eq $epolicy->string_value) {
$exists = 1;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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