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 <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/406659
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Daniel Verkamp 2018-04-05 13:40:14 -07:00
parent 9689e6cca5
commit 46cbc7408a

View File

@ -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'])