]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix deploy crash when no `args.fsid` 33248/head
authorMichael Fritch <mfritch@suse.com>
Wed, 12 Feb 2020 18:36:35 +0000 (11:36 -0700)
committerMichael Fritch <mfritch@suse.com>
Wed, 12 Feb 2020 18:51:34 +0000 (11:51 -0700)
broken by 724199dd873e2a02f67ea2e191093d8080c686a7 when the
crash agent was made to behave like all other services

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 8fec14024997f07e26ceca15afc08a1fce640b69..a256563fe89f14232991af30f50005ca32a5a177 100755 (executable)
@@ -1391,8 +1391,8 @@ def deploy_crash(fsid, uid, gid, config, keyring):
     # type: (str, int, int, str, str) -> None
     crash_dir = os.path.join(args.data_dir, fsid, 'crash')
     makedirs(crash_dir, uid, gid, DATA_DIR_MODE)
-    c = get_container(args.fsid, 'crash', get_hostname())
-    deploy_daemon(args.fsid, 'crash', get_hostname(), c, uid, gid,
+    c = get_container(fsid, 'crash', get_hostname())
+    deploy_daemon(fsid, 'crash', get_hostname(), c, uid, gid,
                   config, keyring)
 
 def get_unit_file(fsid, uid, gid):