Neat: code cleanup
This commit is contained in:
parent
14fb741bdc
commit
d389ee270d
7
bd2fs.py
7
bd2fs.py
@ -1,7 +1,6 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
|
|
||||||
from csi import csi_pb2, csi_pb2_grpc
|
from csi import csi_pb2, csi_pb2_grpc
|
||||||
from csi.csi_pb2 import (
|
from csi.csi_pb2 import (
|
||||||
NodeStageVolumeRequest,
|
NodeStageVolumeRequest,
|
||||||
@ -30,7 +29,7 @@ def get_fs(request):
|
|||||||
|
|
||||||
|
|
||||||
class Bd2FsIdentityServicer(csi_pb2_grpc.IdentityServicer):
|
class Bd2FsIdentityServicer(csi_pb2_grpc.IdentityServicer):
|
||||||
def __init__(self, bds):
|
def __init__(self, bds: csi_pb2_grpc.IdentityServicer):
|
||||||
self.bds = bds
|
self.bds = bds
|
||||||
|
|
||||||
@log_grpc_request
|
@log_grpc_request
|
||||||
@ -47,7 +46,7 @@ class Bd2FsIdentityServicer(csi_pb2_grpc.IdentityServicer):
|
|||||||
|
|
||||||
|
|
||||||
class Bd2FsNodeServicer(csi_pb2_grpc.NodeServicer):
|
class Bd2FsNodeServicer(csi_pb2_grpc.NodeServicer):
|
||||||
def __init__(self, bds):
|
def __init__(self, bds: csi_pb2_grpc.NodeServicer):
|
||||||
self.bds = bds
|
self.bds = bds
|
||||||
|
|
||||||
# @log_grpc_request
|
# @log_grpc_request
|
||||||
@ -167,7 +166,7 @@ class Bd2FsNodeServicer(csi_pb2_grpc.NodeServicer):
|
|||||||
|
|
||||||
|
|
||||||
class Bd2FsControllerServicer(csi_pb2_grpc.ControllerServicer):
|
class Bd2FsControllerServicer(csi_pb2_grpc.ControllerServicer):
|
||||||
def __init__(self, bds):
|
def __init__(self, bds: csi_pb2_grpc.ControllerServicer):
|
||||||
self.bds = bds
|
self.bds = bds
|
||||||
|
|
||||||
@log_grpc_request
|
@log_grpc_request
|
||||||
|
Loading…
Reference in New Issue
Block a user