summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugins/Bzr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Bzr.py b/src/lib/Server/Plugins/Bzr.py
index 021cf3ab1..c0bfef64f 100644
--- a/src/lib/Server/Plugins/Bzr.py
+++ b/src/lib/Server/Plugins/Bzr.py
@@ -34,8 +34,8 @@ class Bzr(Bcfg2.Server.Plugin.Plugin,
try:
data = Popen(("env LC_ALL=C bzr revno %s" %
(self.datastore)), shell=True,
- stdout=PIPE).stdout.readlines()
- revision = data[0].rstrip('\n')
+ stdout=PIPE).communicate()[0].split('\n')
+ revision = data[0]
except IndexError:
logger.error("Failed to read bzr revno; disabling Bazaar support")
logger.error('''Ran command "bzr revno %s"''' % \