]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: drop useless uid/gid checks
authorSage Weil <sage@redhat.com>
Tue, 1 Oct 2019 16:09:07 +0000 (11:09 -0500)
committerSage Weil <sage@redhat.com>
Sat, 5 Oct 2019 01:33:35 +0000 (20:33 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index b575db456bd1f259934c1d12b99cb0b44757df04..6f38ea71854866357c17a20891e81ab5fec713c3 100755 (executable)
@@ -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))