]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: split default_image decorator into two functions
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 14:25:38 +0000 (10:25 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:13 +0000 (13:35 -0400)
commit8a1186e3d65bd1fbab6bc42a7c680e131fb03367
tree4620c52a31bad4136336374902fa4aa1668866e6
parent4e57a530eb1b70131b6acaba02f7112af04ff1e7
cephadm: split default_image decorator into two functions

Keep default_image as a decorator for functions that will only
ever need to update an image passed by the CLI. For other future
functions that want to execute code prior to assigning an image
from CLI parameters add `update_default_image` which takes a
CephadmContext and updates it and can be used by the caller
at an arbitrary point in the code flow.

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