From 07df69edc8165d875edd42a4080a494e09b98de5 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Tue, 8 Apr 2014 15:29:08 +0530 Subject: geo-rep: fix the code bug introduced due to flake8 refactoring Sorry for the bug, which got introduced due to code refactoring. http://review.gluster.org/#/c/7311/ Change-Id: Ide519ca114aa8a7d7624d7af99945c857f069069 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/7417 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- geo-replication/syncdaemon/resource.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index 2fb6b3078..e3cf33ffd 100644 --- a/geo-replication/syncdaemon/resource.py +++ b/geo-replication/syncdaemon/resource.py @@ -468,8 +468,9 @@ class Server(object): try: val = Xattr.lgetxattr(path, - '.'.join([cls.GX_NSPACE, uuid, 'xtime'])) - return struct.unpack('!II', val, 8) + '.'.join([cls.GX_NSPACE, uuid, 'xtime']), + 8) + return struct.unpack('!II', val) except OSError: ex = sys.exc_info()[1] if ex.errno in (ENOENT, ENODATA, ENOTDIR): @@ -489,8 +490,9 @@ class Server(object): try: val = Xattr.lgetxattr(path, - '.'.join([cls.GX_NSPACE, uuid, 'stime'])) - return struct.unpack('!II', val, 8) + '.'.join([cls.GX_NSPACE, uuid, 'stime']), + 8) + return struct.unpack('!II', val) except OSError: ex = sys.exc_info()[1] if ex.errno in (ENOENT, ENODATA, ENOTDIR): @@ -510,8 +512,9 @@ class Server(object): try: val = Xattr.lgetxattr(path, - '.'.join([cls.GX_NSPACE, uuid, 'stime'])) - return struct.unpack('!II', val, 8) + '.'.join([cls.GX_NSPACE, uuid, 'stime']), + 8) + return struct.unpack('!II', val) except OSError: ex = sys.exc_info()[1] if ex.errno in (ENOENT, ENODATA, ENOTDIR): -- cgit