]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: remove unused/commented out code
authorPatrick Seidensal <pseidensal@suse.com>
Tue, 7 Jul 2020 12:29:12 +0000 (14:29 +0200)
committerPatrick Seidensal <pseidensal@suse.com>
Fri, 17 Jul 2020 12:49:51 +0000 (14:49 +0200)
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
src/cephadm/cephadm

index 861387763968c6715d3551abdecc3af72860c58c..e457c6d430e5195dc108bf1ccbab2c058c5cc746 100755 (executable)
@@ -1755,17 +1755,11 @@ def get_container(fsid, daemon_type, daemon_id,
     ceph_args = [] # type: List[str]
     if daemon_type in Monitoring.components:
         uid, gid = extract_uid_gid_monitoring(daemon_type)
-        m = Monitoring.components[daemon_type]  # type: ignore
-        metadata = m.get('image', dict())  # type: ignore
         monitoring_args = [
             '--user',
             str(uid),
             # FIXME: disable cpu/memory limits for the time being (not supported
             # by ubuntu 18.04 kernel!)
-            #'--cpus',
-            #metadata.get('cpus', '2'),
-            #'--memory',
-            #metadata.get('memory', '4GB')
         ]
         container_args.extend(monitoring_args)
     elif daemon_type == 'crash':
@@ -2714,7 +2708,7 @@ def command_bootstrap():
 
             if not os.path.exists(ssh_dir):
                 makedirs(ssh_dir, ssh_uid, ssh_gid, 0o700)
-                       
+
             auth_keys_file = '%s/authorized_keys' % ssh_dir
             add_newline = False