summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/glusterfile.py
diff options
context:
space:
mode:
authornchilaka <nchilaka@redhat.com>2020-05-15 16:45:47 +0530
committernchilaka <nchilaka@redhat.com>2020-05-15 16:58:39 +0530
commit2d1b8392fe626684c86fae06b93cf8acd308d105 (patch)
tree6a8cae30e428ecb2423e3c055d623e28aea92704 /glustolibs-gluster/glustolibs/gluster/glusterfile.py
parentcb3681d9f3992532c40d7ed7329a675dcd9d75d2 (diff)
[Libfix] Assign correct atime, ctime, mtime values
Changed get_file_stat function to assign correct key-value pairs for atime, mtime and ctime respectively. Previously, all timestamp keys were assigned to atime value Change-Id: I471ec341d1a213395a89f6c01315f3d0f2e976af Signed-off-by: nchilaka <nchilaka@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/glusterfile.py')
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/glusterfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/glusterfile.py b/glustolibs-gluster/glustolibs/gluster/glusterfile.py
index a7ddba56b..c057400d5 100755
--- a/glustolibs-gluster/glustolibs/gluster/glusterfile.py
+++ b/glustolibs-gluster/glustolibs/gluster/glusterfile.py
@@ -260,8 +260,8 @@ def get_file_stat(host, fqpath):
stat_data["uid"] = uid
stat_data["gid"] = gid
stat_data["atime"] = atime
- stat_data["mtime"] = atime
- stat_data["ctime"] = atime
+ stat_data["mtime"] = mtime
+ stat_data["ctime"] = ctime
stat_data["epoch_atime"] = epoch_atime
stat_data["epoch_mtime"] = epoch_mtime
stat_data["epoch_ctime"] = epoch_ctime