diff options
author | nchilaka <nchilaka@redhat.com> | 2020-05-15 16:45:47 +0530 |
---|---|---|
committer | nchilaka <nchilaka@redhat.com> | 2020-05-15 16:58:39 +0530 |
commit | 2d1b8392fe626684c86fae06b93cf8acd308d105 (patch) | |
tree | 6a8cae30e428ecb2423e3c055d623e28aea92704 /glustolibs-gluster/glustolibs/gluster/glusterfile.py | |
parent | cb3681d9f3992532c40d7ed7329a675dcd9d75d2 (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-x | glustolibs-gluster/glustolibs/gluster/glusterfile.py | 4 |
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 |