]> 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>
Fri, 2 Oct 2020 07:46:26 +0000 (09:46 +0200)
commit4c2616433aae84d6d65ad519a1ce2ced69f375c1
treec9d7f588c9cb2445b88a116162caea8dd107ff04
parenta71699f005e8dfc83edd6ba2dda0a24bd09d85eb
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