Skip to content

Commit

Permalink
lineinfile supports symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
njharman committed Jun 19, 2014
1 parent 2c79a03 commit 3770813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/files/lineinfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def write_changes(module,lines,dest):
module.fail_json(msg='failed to validate: '
'rc:%s error:%s' % (rc,err))
if valid:
module.atomic_move(tmpfile, dest)
module.atomic_move(tmpfile, os.path.realpath(dest))

def check_file_attrs(module, changed, message):

Expand Down

0 comments on commit 3770813

Please sign in to comment.