diff options
| author | David Lamparter <equinox@diac24.net> | 2018-10-26 22:21:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-26 22:21:44 +0200 |
| commit | 93f1d85c2d726785a129b6eff9f54c82717cde1e (patch) | |
| tree | 6c1f3b00d554049812d56920353bff308a58ade2 /lib/command.c | |
| parent | 7d353b8a9ea78b3a4554c582ee94f024a2cce577 (diff) | |
| parent | b45d8ccc3280677dae5dda773f158a4b3c5e597e (diff) | |
Merge pull request #3237 from donaldsharp/actual_error
lib: If command was successful don't store the command as an error
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 839c37b102..127e1a0a0a 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1323,7 +1323,9 @@ int command_config_read_one_line(struct vty *vty, } } - if (ret != CMD_SUCCESS && ret != CMD_WARNING) { + if (ret != CMD_SUCCESS && + ret != CMD_WARNING && + ret != CMD_SUCCESS_DAEMON) { struct vty_error *ve = XCALLOC(MTYPE_TMP, sizeof(*ve)); memcpy(ve->error_buf, vty->buf, VTY_BUFSIZ); |
