Right now the user of the grpc-client has to import and use MessageToDict() from google.protobuf.json_format to convert the protobuf message to a Python dictionary. This should be abstracted away and done in the client which should just return a dictionary to the script calling ffs.default_config().
Note, this has already been done for the ffs.set_default_config() method. See
|
config = Parse(config, ffs_rpc_pb2.StorageConfig()) |
Right now the user of the grpc-client has to import and use
MessageToDict()fromgoogle.protobuf.json_formatto convert the protobuf message to a Python dictionary. This should be abstracted away and done in the client which should just return a dictionary to the script calling ffs.default_config().Note, this has already been done for the
ffs.set_default_config()method. Seepygate-gRPC/pygate_grpc/ffs.py
Line 84 in 84554d5