From 0c9841c707c1a8bd0f42edb72c64c35967be9dc8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 23 Nov 2019 09:07:09 -0600 Subject: [PATCH] ceph-daemon: fix extract_uid_gid This will get confused by the cephdaemon user! Signed-off-by: Sage Weil --- src/ceph-daemon/ceph-daemon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-daemon/ceph-daemon b/src/ceph-daemon/ceph-daemon index 9e4216f3b3d..820c394013e 100755 --- a/src/ceph-daemon/ceph-daemon +++ b/src/ceph-daemon/ceph-daemon @@ -507,7 +507,7 @@ def extract_uid_gid(): out = CephContainer( image=args.image, entrypoint='/usr/bin/grep', - args=['ceph', '/etc/passwd'], + args=['^ceph:', '/etc/passwd'], ).run() (uid, gid) = out.split(':')[2:4] return (int(uid), int(gid)) -- 2.39.5