Fix a typo that went undetected by tests because we don't have any test
cases for error paths when using database commands with ovn-nbctl.
Fixes: 675b152e999f ("db-ctl-base: Extend ctl_context with an error message.")
Signed-off-by: Jakub Sitnicki <[email protected]>
---
ovn/utilities/ovn-nbctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
index fbdb5a4d9..762348ccb 100644
--- a/ovn/utilities/ovn-nbctl.c
+++ b/ovn/utilities/ovn-nbctl.c
@@ -3843,7 +3843,7 @@ do_nbctl(const char *args, struct ctl_command *commands,
size_t n_commands,
(c->syntax->run)(&ctx);
}
if (ctx.error) {
- ctl_fatal("%s", error);
+ ctl_fatal("%s", ctx.error);
}
ctl_context_done_command(&ctx, c);
--
2.14.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev