summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-11-10 18:46:28 +0530
committerVenky Shankar <vshankar@redhat.com>2016-01-03 22:35:10 -0800
commita176d2420f3a0242ab0edab9e43be6621baa4f47 (patch)
tree733f70141cf14f3dcad995d3f2bbf51e354e8b62 /geo-replication/syncdaemon
parentbeca3d718bbb0851ffa0d07199a4779f50d19fdc (diff)
geo-rep: Fix syntax errors in GsyncdError
%s was not replaced by actual values in GsyncdError BUG: 1279644 Change-Id: I3c0a10f07383ca72844a46f930b4aa3d3c29f568 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/12566 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com> (cherry picked from commit 74699ddd777f7e862991cf3afad91823d30e5b84) Reviewed-on: http://review.gluster.org/12724 Reviewed-by: Milind Changire <mchangir@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon')
-rw-r--r--geo-replication/syncdaemon/monitor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py
index cabb982349d..2b570a9f4fc 100644
--- a/geo-replication/syncdaemon/monitor.py
+++ b/geo-replication/syncdaemon/monitor.py
@@ -102,7 +102,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
@@ -132,8 +132,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
def replica_count(self, tier, hot):