From 77bfea8863f88ca51d93212a2b6c13d362d390bd Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 13 Dec 2019 12:48:44 -0600 Subject: [PATCH] mgr/cephadm: fix temp file prefixes Signed-off-by: Sage Weil --- src/pybind/mgr/cephadm/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3