]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: Rename env var; add warning
authorZack Cerza <zack@redhat.com>
Tue, 21 Jun 2022 17:28:30 +0000 (11:28 -0600)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 2 Aug 2022 09:18:24 +0000 (11:18 +0200)
commit8181abc4bec3484d71f64c6705d35dfeb5ddcced
tree4bf4c7a1521a28e18423f32d9b590c97138d3b74
parent5705e10e809cdc9f70018263c54a63ac4a02809c
ceph-volume: Rename env var; add warning

So that we can have a nice big warning that fires once per invocation, I
think using a callable class with a class attribute seems like a decent
approach. A closure could work too.

Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit 69f58f51a2d7967d597a8d61c0ab20b52e8dc374)
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py