]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: --config-json overrides --config or --keyring args
authorSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 14:49:17 +0000 (09:49 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Wed, 17 Nov 2021 10:25:57 +0000 (11:25 +0100)
These args aren't normally combined, but if --fsid and --name are
provided, they may be inferred.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit f68f9dd7c389cbd7846c366cd528769f382c0217)

src/cephadm/cephadm

index 49417c4a0da57f6c9d4e209bc97e0958472ac7c1..a41f70f7ef61b5262605dc6050b4e1216f85e642 100755 (executable)
@@ -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: