Skip to content

Commit 711c62d

Browse files
committed
confd: fix duplicate keystore log messages at boot
Only install the keys on CHANGE event, fixes this annoying issue: Nov 5 01:32:10 ix confd[2011]: Installing HTTPS gencert certificate "self-signed" Nov 5 01:32:10 ix confd[2011]: Installing SSH host key "genkey". Nov 5 01:32:11 ix confd[2011]: Installing HTTPS gencert certificate "self-signed Nov 5 01:32:11 ix confd[2011]: Installing SSH host key "genkey". Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 430e51a commit 711c62d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/confd/src/keystore.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ int keystore_change(sr_session_ctx_t *session, struct lyd_node *config, struct l
313313

314314
switch (event) {
315315
case SR_EV_UPDATE:
316-
rc = keystore_update(session, config, diff);
317-
break;
316+
return keystore_update(session, config, diff);
318317
case SR_EV_CHANGE:
319318
if (diff && lydx_find_xpathf(diff, XPATH_KEYSTORE_SYM))
320319
rc = interfaces_validate_keys(session, config);

0 commit comments

Comments
 (0)