Use object for blockdev_find RPC call result
This patch changes the return type for backend.BlockdevFind to an object (objects.BlockDevStatus). Before a tuple was used. Adding more values to this tuple causes a lot of work. Converting the result to an object with properties will make this a bit simpler. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- daemons/ganeti-noded 1 addition, 1 deletiondaemons/ganeti-noded
- lib/backend.py 12 additions, 6 deletionslib/backend.py
- lib/bdev.py 57 additions, 22 deletionslib/bdev.py
- lib/cmdlib.py 11 additions, 8 deletionslib/cmdlib.py
- lib/objects.py 22 additions, 0 deletionslib/objects.py
- lib/rpc.py 4 additions, 1 deletionlib/rpc.py
Loading
Please register or sign in to comment