From: Patrick Seidensal Date: Tue, 7 Jul 2020 12:29:12 +0000 (+0200) Subject: cephadm: remove unused/commented out code X-Git-Tag: wip-pdonnell-testing-20200918.022351~608^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6aa87f7b0dfd516439a6c75681e20d7dffacaf4d;p=ceph-ci.git cephadm: remove unused/commented out code Signed-off-by: Patrick Seidensal --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 86138776396..e457c6d430e 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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