Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
c1bb34ab
Commit
c1bb34ab
authored
Apr 07, 2017
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1207
parent
2c1be994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm
...ldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm
+6
-7
No files found.
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm
View file @
c1bb34ab
...
...
@@ -716,14 +716,13 @@ sub getKey {
}
elsif
(
$key
=~
qr/^$doubleHashKeys$/
o
)
{
my
@res
;
if
(
defined
$value
)
{
foreach
my
$host
(
sort
keys
%$value
)
{
my
@tmp
;
foreach
my
$k
(
sort
keys
%
{
$value
->
{
$host
}
}
)
{
push
@tmp
,
{
k
=>
$k
,
v
=>
$value
->
{
$host
}
->
{
$k
}
};
}
push
@res
,
{
k
=>
$host
,
h
=>
\
@tmp
};
$value
||=
{};
foreach
my
$host
(
sort
keys
%$value
)
{
my
@tmp
;
foreach
my
$k
(
sort
keys
%
{
$value
->
{
$host
}
}
)
{
push
@tmp
,
{
k
=>
$k
,
v
=>
$value
->
{
$host
}
->
{
$k
}
};
}
push
@res
,
{
k
=>
$host
,
h
=>
\
@tmp
};
}
return
$self
->
sendJSONresponse
(
$req
,
{
value
=>
\
@res
}
);
}
...
...
Write
Preview
Markdown
is supported
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