From 947a1ac2eabf95f6cd5454da96c417fe5f36654f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 1 Oct 2019 11:09:07 -0500 Subject: [PATCH] ceph-daemon: drop useless uid/gid checks Signed-off-by: Sage Weil --- src/ceph-daemon | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index b575db456bd..6f38ea71854 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -658,11 +658,9 @@ def command_deploy(): def command_run(): (daemon_type, daemon_id) = args.name.split('.') - (uid, gid) = extract_uid_gid() c = get_container(args.fsid, daemon_type, daemon_id) subprocess.call(c.run_cmd()) - ################################## def command_shell(): @@ -671,7 +669,6 @@ def command_shell(): else: daemon_type = args.name daemon_id = None - (uid, gid) = extract_uid_gid() c = get_container(args.fsid, daemon_type, daemon_id) subprocess.call(c.shell_cmd()) @@ -679,7 +676,6 @@ def command_shell(): def command_enter(): (daemon_type, daemon_id) = args.name.split('.') - (uid, gid) = extract_uid_gid() c = get_container(args.fsid, daemon_type, daemon_id) subprocess.call(c.exec_cmd(['bash'])) @@ -687,7 +683,6 @@ def command_enter(): def command_exec(): (daemon_type, daemon_id) = args.name.split('.') - (uid, gid) = extract_uid_gid() c = get_container(args.fsid, daemon_type, daemon_id, privileged=args.privileged) subprocess.call(c.exec_cmd(args.command)) -- 2.39.5