|
|
|
@ -1600,9 +1600,9 @@ class AnsibleModule(object):
|
|
|
|
|
b_dest = to_bytes(dest, errors='surrogate_or_strict')
|
|
|
|
|
|
|
|
|
|
if not os.path.isabs(src):
|
|
|
|
|
self.module.warn('The source path for atomic_move is not an absolute path, this might not work and will be enforced in the future')
|
|
|
|
|
self.warn('The source path for atomic_move is not an absolute path, this might not work and will be enforced in the future')
|
|
|
|
|
if not os.path.isabs(dest):
|
|
|
|
|
self.module.warn('The desitination path for atomic_move is not an absolute path, this might not work and will be enforced in the future')
|
|
|
|
|
self.warn('The desitination path for atomic_move is not an absolute path, this might not work and will be enforced in the future')
|
|
|
|
|
|
|
|
|
|
if os.path.exists(b_dest) and keep_dest_attrs:
|
|
|
|
|
try:
|
|
|
|
|