From: Travis Rhoden Date: Tue, 4 Aug 2015 18:30:56 +0000 (-0700) Subject: [RM-12553] Clarify comments when writing repo files X-Git-Tag: v1.5.27~4^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c61916e238260f243d141dccafcf78fb7ee5e93f;p=ceph-deploy.git [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 --- 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)