]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: make the old command_deploy deprecated with decorator
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 18 May 2023 20:14:24 +0000 (16:14 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit452f59ce1d2d71bebc0554ebfab12a5fbf3ada74
tree2b8518d506bf244a4c61c059c6eb4b8862a3dc98
parent83f8a1b687506573b119804532ad37ad3ce0d393
cephadm: make the old command_deploy deprecated with decorator

Add a deprecated command decorator. Decorate the old command_deploy with
it. By default it just logs if a deprecated command was used, but
custom builds of cephadm can set the NO_DEPRECATED var to True
and fail if a deprecated command is used.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py