Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-orchestrator
Commits
64cb5624
Verified
Commit
64cb5624
authored
3 weeks ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
refactor(audit) - clarify empty audit entries check by using count() for better readability
parent
e900b7fa
dev
89-orchestrator-lifecycle-adaptation-to-regex-supann-selection
1 merge request
!88
Resolve "[Orchestrator] - Update audit tasks to allows generation of syslog export data"
Pipeline
#32687
passed with stages
in 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/tasks/Audit.php
+2
-1
plugins/tasks/Audit.php
with
2 additions
and
1 deletion
+2
-1
plugins/tasks/Audit.php
+
2
−
1
View file @
64cb5624
...
@@ -136,7 +136,8 @@ class Audit implements EndpointInterface
...
@@ -136,7 +136,8 @@ class Audit implements EndpointInterface
$auditEntries
=
$this
->
gateway
->
getLdapTasks
(
$filter
,
[
'*'
],
''
,
''
);
$auditEntries
=
$this
->
gateway
->
getLdapTasks
(
$filter
,
[
'*'
],
''
,
''
);
$this
->
gateway
->
unsetCountKeys
(
$auditEntries
);
$this
->
gateway
->
unsetCountKeys
(
$auditEntries
);
if
(
empty
(
$auditEntries
))
{
// Check if there are no audit entries
if
(
count
(
$auditEntries
)
===
0
)
{
$this
->
gateway
->
updateTaskStatus
(
$task
[
'dn'
],
$task
[
'cn'
][
0
],
'2'
);
$this
->
gateway
->
updateTaskStatus
(
$task
[
'dn'
],
$task
[
'cn'
][
0
],
'2'
);
$result
[]
=
[
"dn"
=>
$task
[
'dn'
],
"message"
=>
"No audit entries found to transform"
];
$result
[]
=
[
"dn"
=>
$task
[
'dn'
],
"message"
=>
"No audit entries found to transform"
];
continue
;
continue
;
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets