Skip to contentSkip to conversation

rpcctl.py: Use the correct function for setting xprts offline and online

PATCH New [email protected] 1 participant 1 message May 2, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpcctl.py: Use the correct function for setting xprts offline and online

From: Anna Schumaker <[email protected]>

Otherwise the tool will tell us:
'Namespace' object has no attribute 'set_state'

---
 tools/rpcctl/rpcctl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/rpcctl/rpcctl.py +1 -1
index b8df556b682c..2a69eacd3103 100755
@@ -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)
 
 
Signature · 1 line
2.36.0