From: Sage Weil Date: Fri, 29 Oct 2021 14:49:17 +0000 (-0500) Subject: cephadm: --config-json overrides --config or --keyring args X-Git-Tag: v16.2.7~33^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eeda047c8a3772b7007e1ab90391e4f009a79d9e;p=ceph.git cephadm: --config-json overrides --config or --keyring args These args aren't normally combined, but if --fsid and --name are provided, they may be inferred. Signed-off-by: Sage Weil (cherry picked from commit f68f9dd7c389cbd7846c366cd528769f382c0217) --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 49417c4a0da5..a41f70f7ef61 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2315,6 +2315,8 @@ def get_config_and_keyring(ctx): d = get_parm(ctx.config_json) config = d.get('config') keyring = d.get('keyring') + if config and keyring: + return config, keyring if 'config' in ctx and ctx.config: try: