From patchwork Mon May 2 23:50:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schumaker, Anna" X-Patchwork-Id: 12834918 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FF6FC433EF for ; Mon, 2 May 2022 23:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231282AbiEBXzD (ORCPT ); Mon, 2 May 2022 19:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbiEBXyX (ORCPT ); Mon, 2 May 2022 19:54:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6834DA6 for ; Mon, 2 May 2022 16:50:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 095A7B81B05 for ; Mon, 2 May 2022 23:50:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EB40C385AC; Mon, 2 May 2022 23:50:49 +0000 (UTC) From: Anna.Schumaker@Netapp.com To: steved@redhat.com, linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [PATCH] rpcctl.py: Use the correct function for setting xprts offline and online Date: Mon, 2 May 2022 16:50:47 -0700 Message-Id: <20220502235047.8222-1-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker Otherwise the tool will tell us: 'Namespace' object has no attribute 'set_state' Signed-off-by: Anna Schumaker --- tools/rpcctl/rpcctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rpcctl/rpcctl.py b/tools/rpcctl/rpcctl.py index b8df556b682c..2a69eacd3103 100755 --- a/tools/rpcctl/rpcctl.py +++ b/tools/rpcctl/rpcctl.py @@ -142,7 +142,7 @@ class Xprt: xprt.set_state("offline") xprt.set_state("remove") else: - args.set_state(args.property) + xprt.set_state(args.property) print(xprt)