Message ID | 20180707111004.8320-26-jkbs@redhat.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41N8N556Q0z9s0n for <incoming@patchwork.ozlabs.org>; Sat, 7 Jul 2018 21:23:01 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 8FCADD35; Sat, 7 Jul 2018 11:10:46 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 45A8BD1F for <dev@openvswitch.org>; Sat, 7 Jul 2018 11:10:45 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id C03A2765 for <dev@openvswitch.org>; Sat, 7 Jul 2018 11:10:44 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id h10-v6so6413427wrq.8 for <dev@openvswitch.org>; Sat, 07 Jul 2018 04:10:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=hAFCKiaZDZrJkourExEQOpVske/4Ql1qcR8PAY6bdSI=; b=rjJK7lbQ/ohdMG0+2f7kVomvc0MYAlOF5C+lwobzMzgZEVNwiOzOTHBiIZ3d9UW0mK tOM3ot8KVUjNI/x63CvDcH/dxBIYYZlTZgcl7YE4as8XsiHPlnaysJILQJK1X/cFqLjX Rytqi/dXxedauuUmxjELY67chiBwgwfZVqx4qSH1pJEtvUf6fK+TpEcPWXGN8ikXCvO8 OJy+fpXS0CfwnqLhmu3dvTkEZ2oNQgj6mCm5DAWeGBz0CZOVAaw/hnJNyy2OqC/2xnV1 vSlfobMaWc8UjIfoz2SFq297GaqdTVJS+Zu/g6sx0WQzc7JYCJxraZuIE7E2ToG8jeKa O9Qw== X-Gm-Message-State: APt69E1QZgN0P7tyCVBKkwIW4/hi+vvg25yXDbgUTzB7ykdvrpjVxJdr oBE4zdPTRDbtYcgNUjPy4H8Ms++MmkM= X-Google-Smtp-Source: AAOMgpdgNpExTO2+wGg152PgKHMd8Y43RJGRdQyhnS9WpjXaM52+ubbm9xeJN3bg11++phkcHs6xXQ== X-Received: by 2002:adf:e24d:: with SMTP id n13-v6mr10216332wri.205.1530961843190; Sat, 07 Jul 2018 04:10:43 -0700 (PDT) Received: from redhat.com (218.red-2-136-166.dynamicip.rima-tde.net. [2.136.166.218]) by smtp.gmail.com with ESMTPSA id n16-v6sm18022403wrg.58.2018.07.07.04.10.42 for <dev@openvswitch.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Jul 2018 04:10:42 -0700 (PDT) From: Jakub Sitnicki <jkbs@redhat.com> To: dev@openvswitch.org Date: Sat, 7 Jul 2018 13:09:59 +0200 Message-Id: <20180707111004.8320-26-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180707111004.8320-1-jkbs@redhat.com> References: <20180707111004.8320-1-jkbs@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH 25/30] ovn-nbctl: Don't die in nbctl_lrp_get_gateway_chassis(). X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
Get rid of ctl_fatal() calls in ovn-nbctl (part 1)
|
expand
|
diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c index 032dcd414..aeb401962 100644 --- a/ovn/utilities/ovn-nbctl.c +++ b/ovn/utilities/ovn-nbctl.c @@ -3419,7 +3419,8 @@ nbctl_lrp_get_gateway_chassis(struct ctl_context *ctx) char *error = lrp_by_name_or_uuid(ctx, id, true, &lrp); if (error) { - ctl_fatal("%s", error); + ctx->error = error; + return; } gcs = get_ordered_gw_chassis_prio_list(lrp);
Propagate the error via the context instead. Signed-off-by: Jakub Sitnicki <jkbs@redhat.com> --- ovn/utilities/ovn-nbctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)