diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ipa/ipa_hostid.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_hostid.c b/src/providers/ipa/ipa_hostid.c index a697dbf6..7afe350a 100644 --- a/src/providers/ipa/ipa_hostid.c +++ b/src/providers/ipa/ipa_hostid.c @@ -269,8 +269,15 @@ hosts_get_done(struct tevent_req *subreq) } if (state->count == 0) { - DEBUG(SSSDBG_CRIT_FAILURE, + DEBUG(SSSDBG_OP_FAILURE, ("No host with name [%s] found.\n", state->name)); + + ret = sysdb_delete_ssh_host(state->domain->sysdb, state->domain, + state->name); + if (ret != EOK && ret != ENOENT) { + goto done; + } + ret = EINVAL; goto done; } |