From: Sage Weil Date: Fri, 13 Dec 2019 18:48:44 +0000 (-0600) Subject: mgr/cephadm: fix temp file prefixes X-Git-Tag: v15.1.0~506^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32250%2Fhead;p=ceph.git mgr/cephadm: fix temp file prefixes Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 660d666c1fe8..17818a736e3e 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -379,7 +379,7 @@ class CephadmOrchestrator(MgrModule, orchestrator.Orchestrator): if ssh_config is not None or ssh_config_fname is None: if not ssh_config: ssh_config = DEFAULT_SSH_CONFIG - f = tempfile.NamedTemporaryFile(prefix='ceph-mgr-ssh-conf-') + f = tempfile.NamedTemporaryFile(prefix='cephadm-conf-') os.fchmod(f.fileno(), 0o600) f.write(ssh_config.encode('utf-8')) f.flush() # make visible to other processes @@ -397,7 +397,7 @@ class CephadmOrchestrator(MgrModule, orchestrator.Orchestrator): self.ssh_pub = ssh_pub self.ssh_key = ssh_key if ssh_key and ssh_pub: - tkey = tempfile.NamedTemporaryFile(prefix='ceph-mgr-ssh-identity-') + tkey = tempfile.NamedTemporaryFile(prefix='cephadm-identity-') tkey.write(ssh_key.encode('utf-8')) os.fchmod(tkey.fileno(), 0o600) tkey.flush() # make visible to other processes