summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-18 14:50:52 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-18 14:50:52 -0400
commit6cc24e1f7fdddda46e8665c6bb2fbca4b6f6a57f (patch)
treea03bfaef761bc7a5c7166c70e254673cf3f66c87 /src/sbin
parent827d0a83b8c9148598c23cb550862c0cf50b5a23 (diff)
downloadbcfg2-6cc24e1f7fdddda46e8665c6bb2fbca4b6f6a57f.tar.gz
bcfg2-6cc24e1f7fdddda46e8665c6bb2fbca4b6f6a57f.tar.bz2
bcfg2-6cc24e1f7fdddda46e8665c6bb2fbca4b6f6a57f.zip
bcfg2-yum-helper: added missing docstring
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-yum-helper2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-yum-helper b/src/sbin/bcfg2-yum-helper
index 1f22c0ff9..161aa3e50 100755
--- a/src/sbin/bcfg2-yum-helper
+++ b/src/sbin/bcfg2-yum-helper
@@ -199,6 +199,8 @@ def acquire_lock(func):
lock while the method runs """
@wraps(func)
def inner(self, *args, **kwargs):
+ """ Get and release a lock while running the function this
+ wraps. """
self.logger.debug("Acquiring lock at %s" % self.lockfile)
while not self.lock.i_am_locking():
try: