]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-12553] Clarify comments when writing repo files
authorTravis Rhoden <trhoden@redhat.com>
Tue, 4 Aug 2015 18:30:56 +0000 (11:30 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 4 Aug 2015 19:29:40 +0000 (12:29 -0700)
These comments get printed to the console, and were a bit
misleading/ambiguous.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/hosts/remotes.py

index b6cca930e41cf2ce0bb4252311ae93b50d0d3a14..573b10f5691f24a2df0e2fdcb5b6f334d375fb1d 100644 (file)
@@ -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)