From c61916e238260f243d141dccafcf78fb7ee5e93f Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Tue, 4 Aug 2015 11:30:56 -0700 Subject: [PATCH] [RM-12553] Clarify comments when writing repo files These comments get printed to the console, and were a bit misleading/ambiguous. Signed-off-by: Travis Rhoden --- ceph_deploy/hosts/remotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py index b6cca93..573b10f 100644 --- a/ceph_deploy/hosts/remotes.py +++ b/ceph_deploy/hosts/remotes.py @@ -42,7 +42,7 @@ def machine_type(): def write_sources_list(url, codename, filename='ceph.list'): - """add deb repo to sources.list""" + """add deb repo to /etc/apt/sources.list.d/""" repo_path = os.path.join('/etc/apt/sources.list.d', filename) with file(repo_path, 'w') as f: f.write('deb {url} {codename} main\n'.format( @@ -52,7 +52,7 @@ def write_sources_list(url, codename, filename='ceph.list'): def write_yum_repo(content, filename='ceph.repo'): - """set the contents of repo file to /etc/yum.repos.d/""" + """add yum repo file in /etc/yum.repos.d/""" repo_path = os.path.join('/etc/yum.repos.d', filename) write_file(repo_path, content) -- 2.47.3