time is what i wanted, not gmtime
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
This commit is contained in:
parent
7b44dd530f
commit
d682807c7b
1 changed files with 1 additions and 1 deletions
2
copy
2
copy
|
@ -67,7 +67,7 @@ def main():
|
|||
backup_file = module.backup_local(dest)
|
||||
#TODO:pid + epoch should avoid most collisions, hostname/mac for those using nfs?
|
||||
# might be an issue with exceeding path length
|
||||
dest_tmp = "%s.%s.%s.tmp" % (dest,os.getpid(),time.gmtime())
|
||||
dest_tmp = "%s.%s.%s.tmp" % (dest,os.getpid(),time.time())
|
||||
shutil.copyfile(src, dest_tmp)
|
||||
shutil.move(dest_tmp, dest)
|
||||
except shutil.Error:
|
||||
|
|
Loading…
Reference in a new issue