Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not delete entry if get script returns an error #12

Closed
coudot opened this issue Dec 26, 2021 · 0 comments
Closed

Do not delete entry if get script returns an error #12

coudot opened this issue Dec 26, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@coudot
Copy link
Member

coudot commented Dec 26, 2021

When using executable plugin as source for the clean phase, entries in destination are deleted even if the script returns an error. The entry should be deleted in destination only if script succeed but returns no entry.

Dec 25 20:57:55 - ERROR - Non zero exit code for runtime: /usr/local/bin/xxx-get.pl, exit code=1
Dec 25 20:57:55 - ERROR - Can't connect to api.xxx:443
Dec 25 20:57:55 - ERROR - Entries count: 0
Dec 25 20:57:55 - INFO  - # Removing object uid=xxx,ou=users,xxx for user-full
@coudot coudot added this to the 1.1 milestone Dec 26, 2021
@coudot coudot added the bug label Dec 26, 2021
@soisik soisik self-assigned this Jan 3, 2022
soisik added a commit to Worteks/lsc-executable-plugin that referenced this issue Jan 4, 2022
@soisik soisik closed this as completed in a7de594 Jan 6, 2022
soisik added a commit that referenced this issue Jan 6, 2022
Fix #12 Do not delete entry if get script returns an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants