[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.42-36-ge22bd63

Holger Levsen holger at layer-acht.org
Thu Jan 19 23:26:29 UTC 2012


The following commit has been merged in the piatti branch:
commit 6282ffee08a082715679bd64e912cc57202a84f6
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Jan 20 00:15:05 2012 +0100

    fix syntax of last commit

diff --git a/piuparts-slave.py b/piuparts-slave.py
index 1a8254f..ebd6d28 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -188,12 +188,12 @@ class Slave:
         if line != "ok\n":
             raise MasterNotOK()
 
-    def get_status(self):
+    def get_status(section):
         self._writeline("status")
         line = self._readline()
         words = line.split()
         if words and words[0] == "ok":
-            logging.info("Master " + self._config.section + "status: " + " ".join(words[1:]))
+            logging.info("Master " + section + "status: " + " ".join(words[1:]))
         else:
             raise MasterIsCrazy()
 
@@ -310,7 +310,7 @@ class Section:
             while len(self._slave.get_reserved()) < max_reserved and self._slave.reserve():
                 pass
 
-        self._slave.get_status()
+        self._slave.get_status(self._config.section)
         self._slave.close()
 
         if self._slave.get_reserved():

-- 
piuparts git repository



More information about the Piuparts-commits mailing list