Blame SOURCES/nfs-utils-2.3.3-rpcctl-subparser.patch

981ed7
From 2fdd10bebf395b51e931a10adbdc85f3a3f8a285 Mon Sep 17 00:00:00 2001
981ed7
From: Alice Mitchell <ajmitchell@redhat.com>
981ed7
Date: Thu, 23 Jun 2022 16:04:45 +0100
981ed7
Subject: [PATCH] Remove subparser required option as that was added in py3.7
981ed7
981ed7
---
981ed7
 tools/rpcctl/rpcctl.py | 4 ++--
981ed7
 1 file changed, 2 insertions(+), 2 deletions(-)
981ed7
981ed7
diff --git a/tools/rpcctl/rpcctl.py b/tools/rpcctl/rpcctl.py
981ed7
index d2110ad6..2ac6ede9 100755
981ed7
--- a/tools/rpcctl/rpcctl.py
981ed7
+++ b/tools/rpcctl/rpcctl.py
981ed7
@@ -120,7 +120,7 @@ class Xprt:
981ed7
         set = subparser.add_parser("set", help="Change an xprt property")
981ed7
         set.add_argument("xprt", metavar="XPRT", nargs=1,
981ed7
                          help="Name of a specific xprt to modify")
981ed7
-        subparser = set.add_subparsers(required=True)
981ed7
+        subparser = set.add_subparsers()
981ed7
         online = subparser.add_parser("online", help="Set an xprt online")
981ed7
         online.set_defaults(func=Xprt.set_property, property="online")
981ed7
         offline = subparser.add_parser("offline", help="Set an xprt offline")
981ed7
@@ -185,7 +185,7 @@ class XprtSwitch:
981ed7
         set = subparser.add_parser("set", help="Change an xprt switch property")
981ed7
         set.add_argument("switch", metavar="SWITCH", nargs=1,
981ed7
                          help="Name of a specific xprt switch to modify")
981ed7
-        subparser = set.add_subparsers(required=True)
981ed7
+        subparser = set.add_subparsers()
981ed7
         dstaddr = subparser.add_parser("dstaddr", help="Change an xprt switch's dstaddr")
981ed7
         dstaddr.add_argument("newaddr", metavar="NEWADDR", nargs=1,
981ed7
                              help="The new address for the xprt switch")
981ed7
-- 
981ed7
2.36.1
981ed7