Files
community.general/lib/ansible/module_utils
Pascal Grange 8b08a28c89 fixes issue #13981: unsafe_writes block appeared too late in the atom… (#17405)
* fixes issue #13981: unsafe_writes block appeared too late in the atomic_move
workflow. This led to errno.EBUSY to not be managed in the context of
issue #!#981

* Reduce changes to fix #13981

* Abstract the unsafe_writes fallback into a helper method.
Explicitly try/except os.rename part of the code and call this helper method.
If the code fails in shutil.copy2 or shutil.move this should not be related to issue #13981
since they write to b_tmp_dest_name.
(as suggested by @abadger)

* Check if unsafe_writes in the caller, not in _unsafe_writes.
That way the function call reads as "Do an unsafe write"
and not as "I think we should do an unsafe_write.
2016-09-22 11:31:35 -04:00
..
2016-09-19 16:42:23 +01:00
2016-09-13 13:38:41 -04:00
2015-04-28 09:36:42 -04:00
2016-09-19 12:20:29 -04:00
2016-09-06 13:49:48 -04:00
2016-09-11 23:32:05 -04:00
2016-02-08 19:10:04 +01:00
2016-09-21 05:35:56 -04:00
2016-09-12 13:35:57 -04:00
2015-11-03 09:53:18 -08:00
2016-09-12 13:35:57 -04:00
2016-05-14 07:51:13 -07:00
2016-09-11 23:34:46 -04:00
2016-08-31 07:03:20 -07:00
2016-09-08 08:41:32 -07:00
2016-09-12 13:35:57 -04:00