[ovs-dev] [PATCH 22/30] ovn-nbctl: Don't die in nbctl_lr_del().

Jakub Sitnicki jkbs at redhat.com
Sat Jul 7 11:09:56 UTC 2018


Propagate the error via the context instead.

Signed-off-by: Jakub Sitnicki <jkbs at redhat.com>
---
 ovn/utilities/ovn-nbctl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
index f97bfbb3e..034eb3b74 100644
--- a/ovn/utilities/ovn-nbctl.c
+++ b/ovn/utilities/ovn-nbctl.c
@@ -2609,7 +2609,8 @@ nbctl_lr_del(struct ctl_context *ctx)
 
     char *error = lr_by_name_or_uuid(ctx, id, must_exist, &lr);
     if (error) {
-        ctl_fatal("%s", error);
+        ctx->error = error;
+        return;
     }
     if (!lr) {
         return;
-- 
2.14.4



More information about the dev mailing list