]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: prepare/create - size args as Size class
authorJan Fajerski <jfajerski@suse.com>
Mon, 27 Apr 2020 09:27:08 +0000 (11:27 +0200)
committerJan Fajerski <jfajerski@suse.com>
Wed, 7 Oct 2020 09:22:39 +0000 (11:22 +0200)
commit9f4178c20b39aa15376053b1030c190b7977d08a
tree570c1a1c8fa209accdca61655fa94b536608ef1b
parent78036c555b6a72de3c078822895f9dd716b38ab0
ceph-volume: prepare/create - size args as Size class

This add the disk.Size class as all size related argument types. We
often create this class form args like this anyway and it enables users
to pass not only bytes but also strings like 50G.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 2ff37321640a614fd965d7df6e20d8f9d1430fa3)
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/devices/lvm/prepare.py