From: Kefu Chai Date: Wed, 27 Jan 2021 01:49:20 +0000 (+0800) Subject: cephadm: add fsid if --name is not specified X-Git-Tag: v17.1.0~3110^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39095%2Fhead;p=ceph.git cephadm: add fsid if --name is not specified address an regression introduced by 9e81a5dfc5abdd8caeecf42faa17111fc309b8d3 Signed-off-by: Kefu Chai --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index c369de95b645..c2ac4c0dcb38 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1550,7 +1550,7 @@ def infer_fsid(func): if not is_fsid(daemon['fsid']): # 'unknown' fsid continue - elif "name" in ctx or not ctx.name: + elif "name" not in ctx or not ctx.name: # ctx.name not specified fsids_set.add(daemon['fsid']) elif daemon['name'] == ctx.name: