]> 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)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commitbdf531788f05c7af44f8ad2355c7f27c24724a59
tree7995941fdcd1068b0c1885caebb11eb2ffe1b21b
parent0a882a736c957ff2f638aa3bb113ae1f8074ef65
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