]> git-server-git.apps.pok.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>
Wed, 22 Jan 2020 13:55:50 +0000 (14:55 +0100)
commitdd89f467a0b89a436371c314bc69cf71a6e9ce72
treebd92fa70bd9dae39e80cc45046a4c8165d4da36f
parentc4f555fda14a5fa716e5b092b07c18d782e621c8
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>
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py