summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Bzr.py
diff options
context:
space:
mode:
authorDavid Strauss <david@fourkitchens.com>2009-11-05 07:45:51 +0000
committerDavid Strauss <david@fourkitchens.com>2009-11-05 07:45:51 +0000
commitfd293dd3e12421f4dfcb39cd72ac8c42987a6cd7 (patch)
tree0368d4d34560966098f25c0a07362116ced99161 /src/lib/Server/Plugins/Bzr.py
parentbba9d58cd72d779c68811a26dc2af5ceb68e445b (diff)
downloadbcfg2-fd293dd3e12421f4dfcb39cd72ac8c42987a6cd7.tar.gz
bcfg2-fd293dd3e12421f4dfcb39cd72ac8c42987a6cd7.tar.bz2
bcfg2-fd293dd3e12421f4dfcb39cd72ac8c42987a6cd7.zip
Bzr: Strip newline from end of revision number.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5537 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Bzr.py')
-rw-r--r--src/lib/Server/Plugins/Bzr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Bzr.py b/src/lib/Server/Plugins/Bzr.py
index ef99be1ed..021cf3ab1 100644
--- a/src/lib/Server/Plugins/Bzr.py
+++ b/src/lib/Server/Plugins/Bzr.py
@@ -35,7 +35,7 @@ class Bzr(Bcfg2.Server.Plugin.Plugin,
data = Popen(("env LC_ALL=C bzr revno %s" %
(self.datastore)), shell=True,
stdout=PIPE).stdout.readlines()
- revision = data[0]
+ revision = data[0].rstrip('\n')
except IndexError:
logger.error("Failed to read bzr revno; disabling Bazaar support")
logger.error('''Ran command "bzr revno %s"''' % \