From 46cbc7408a34f13678bdda1b26b08bd1c3259985 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 5 Apr 2018 13:40:14 -0700 Subject: [PATCH] scripts/rpc.py: fix load_config method check The "method" check was looking in the wrong object, so it would always fail and not call any of the methods. Change-Id: I4c91428523256912f47dfced95ff53cc1630284a Fixes: 4c7733618a79 ("json/rpc: Fix. Support not fully implemented subsystems.") Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/406659 Reviewed-by: Ben Walker Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System --- scripts/rpc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rpc/__init__.py b/scripts/rpc/__init__.py index bc3765056..75f371117 100755 --- a/scripts/rpc/__init__.py +++ b/scripts/rpc/__init__.py @@ -59,6 +59,6 @@ def load_config(client, args): if not config: continue for elem in subsystem['config']: - if not elem or 'method' not in config: + if not elem or 'method' not in elem: continue client.call(elem['method'], elem['params'])