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

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