]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
util/disk: extend Size class
authorJan Fajerski <jfajerski@suse.com>
Tue, 10 Dec 2019 13:57:02 +0000 (14:57 +0100)
committerJan Fajerski <jfajerski@suse.com>
Thu, 27 Feb 2020 12:53:56 +0000 (13:53 +0100)
commita124effe43f2bfbb4b0958a9b7f1195a17450d15
treefef7c1053207b97010c8312ec94aa22207502b0b
parent84958abfb92201abf9999ee1c1468a27a53f6693
util/disk: extend Size class

The Size class can now parse strings and has support for arithmetic
operations and comparisons with numbers.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit dd89f467a0b89a436371c314bc69cf71a6e9ce72)
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py