Skip to content

Commit

Permalink
DP: ENOTSUP isn't a fatal failure for target c-tor
Browse files Browse the repository at this point in the history
Reviewed-by: Alejandro López <[email protected]>
Reviewed-by: Tomáš Halman <[email protected]>
(cherry picked from commit 9fe5594)
  • Loading branch information
alexey-tikhonov committed Aug 24, 2023
1 parent 78fba72 commit cb86a5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/data_provider/dp_targets.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ static errno_t dp_target_run_constructor(struct dp_target *target,

ret = fn(target, be_ctx, target->module->module_data, target->methods);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE, "Target [%s] constructor failed "
"[%d]: %s\n", target->name, ret, sss_strerror(ret));
if (ret != ENOTSUP) {
DEBUG(SSSDBG_FATAL_FAILURE, "Target [%s] constructor failed "
"[%d]: %s\n", target->name, ret, sss_strerror(ret));
}
goto done;
}
} else {
Expand Down

0 comments on commit cb86a5c

Please sign in to comment.