Split client out of the args object and pass it as the first parameter to all RPC methods instead. This is a step toward decoupling the rpc/*.py interface from the argparse front end. Change-Id: Ib030862e0c79112e5c9acdde295d68983126a987 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/405502 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
8 lines
205 B
Python
Executable File
8 lines
205 B
Python
Executable File
def get_subsystems(client, args):
|
|
return client.call('get_subsystems')
|
|
|
|
|
|
def get_subsystem_config(client, args):
|
|
params = {'name': args.name}
|
|
return client.call('get_subsystem_config', params)
|