summaryrefslogtreecommitdiffstats
path: root/gluster/swift/__init__.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2013-05-23 19:51:24 -0400
committerLuis Pabon <lpabon@redhat.com>2013-05-24 12:16:43 -0700
commit833d7fc7dfe077b39eade72a5496a40181b20a0c (patch)
tree1ac9a25c69bb90376f43ed7ef1e7973ab4eb1682 /gluster/swift/__init__.py
parentb29164198523591a69b234e869b7a1b94bd4f08e (diff)
Add coverage for gluster.swift module (PkgInfo).
Change-Id: I614efb853989ab455721bbf28309cec746343f50 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/5081 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'gluster/swift/__init__.py')
-rw-r--r--gluster/swift/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gluster/swift/__init__.py b/gluster/swift/__init__.py
index fa360b6..f2c2403 100644
--- a/gluster/swift/__init__.py
+++ b/gluster/swift/__init__.py
@@ -8,8 +8,10 @@ class PkgInfo(object):
self.final = final
def save_config(self, filename):
- """Crates a file with the package configuration
- which can be sourced by a bash script"""
+ """
+ Creates a file with the package configuration which can be sourced by
+ a bash script.
+ """
with open(filename, 'w') as fd:
fd.write("PKG_NAME=%s\n" % self.name)
fd.write("PKG_VERSION=%s\n" % self.canonical_version)