Commit 46cbc740 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: 4c773361 ("json/rpc: Fix. Support not fully implemented subsystems.")
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/406659


Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 9689e6cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'])