summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@Netapp.com>2022-05-26 13:02:42 -0400
committerSteve Dickson <steved@redhat.com>2022-05-26 13:11:57 -0400
commit1393b549eb80761d5f8c6b2c9ed711fb55b507d1 (patch)
tree9173785f935a5a92257bfe1f93b83b1546df19dd /tools
parent8ca592af5fba8aea8b11ee28bf3543bfab02e4b2 (diff)
downloadnfs-utils-1393b549eb80761d5f8c6b2c9ed711fb55b507d1.tar.gz
rpcctl: Use the correct function for setting xprts offline and online
Otherwise the tool will tell us: 'Namespace' object has no attribute 'set_state' Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rpcctl/rpcctl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rpcctl/rpcctl.py b/tools/rpcctl/rpcctl.py
index b8df556..2a69eac 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)