mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
[PR #8925/7c913b23 backport][stable-9] Pass absolute paths to atomic_move() (#8959)
Pass absolute paths to atomic_move() (#8925)
Pass absolute paths to atmoic_move().
(cherry picked from commit 7c913b239a
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
55d44975dd
commit
185bdaaa39
6 changed files with 12 additions and 6 deletions
|
@ -339,7 +339,7 @@ def main():
|
|||
pass
|
||||
|
||||
# Move tempfile to newfile
|
||||
module.atomic_move(nf.name, limits_conf)
|
||||
module.atomic_move(os.path.abspath(nf.name), os.path.abspath(limits_conf))
|
||||
|
||||
try:
|
||||
nf.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue