]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-daemon: fix extract_uid_gid
authorSage Weil <sage@redhat.com>
Sat, 23 Nov 2019 15:07:09 +0000 (09:07 -0600)
committerSage Weil <sage@redhat.com>
Sat, 23 Nov 2019 15:09:02 +0000 (09:09 -0600)
This will get confused by the cephdaemon user!

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon/ceph-daemon

index 9e4216f3b3d1c18492c398349eb40482a41b9814..820c394013ed4be53df0811d43af99866ba53f30 100755 (executable)
@@ -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))