diff options
author | Aravinda VK <avishwan@redhat.com> | 2014-04-08 15:29:08 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-04-08 10:05:41 -0700 |
commit | 07df69edc8165d875edd42a4080a494e09b98de5 (patch) | |
tree | f049d43ceab076bd81f3b742ff145d51e90d385c /geo-replication/syncdaemon/resource.py | |
parent | 6567d141c1b0112acb35e711371ae5a879fc645a (diff) |
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 <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/7417
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/resource.py')
-rw-r--r-- | geo-replication/syncdaemon/resource.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index 2fb6b3078d8..e3cf33ffdc5 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): |