From 74699ddd777f7e862991cf3afad91823d30e5b84 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Tue, 10 Nov 2015 18:46:28 +0530 Subject: geo-rep: Fix syntax errors in GsyncdError %s was not replaced by actual values in GsyncdError BUG: 1279921 Change-Id: I3c0a10f07383ca72844a46f930b4aa3d3c29f568 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/12566 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- geo-replication/syncdaemon/monitor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'geo-replication/syncdaemon') diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index 5a6bf5033a4..7c363214903 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -90,7 +90,7 @@ class Volinfo(object): else: via = ' ' raise GsyncdError('getting volume info of %s%s ' - 'failed with errorcode %s', + 'failed with errorcode %s' % (vol, via, vi.find('opErrno').text)) self.tree = vi self.volume = vol @@ -117,8 +117,7 @@ class Volinfo(object): ids = self.get('id') if len(ids) != 1: raise GsyncdError("volume info of %s obtained from %s: " - "ambiguous uuid", - self.volume, self.host) + "ambiguous uuid" % (self.volume, self.host)) return ids[0].text @property -- cgit