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:
parent
9689e6cca5
commit
46cbc7408a
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user