1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

skip absolute path creation for old_src, not needed with the new relative links

This commit is contained in:
sspans 2013-11-04 10:44:06 +01:00
parent 684921c1c1
commit 904a129ac1

View file

@ -293,8 +293,6 @@ def main():
changed = True changed = True
elif prev_state == 'link': elif prev_state == 'link':
old_src = os.readlink(path) old_src = os.readlink(path)
if not os.path.isabs(old_src):
old_src = os.path.join(os.path.dirname(path), old_src)
if old_src != src: if old_src != src:
changed = True changed = True
elif prev_state == 'hard': elif prev_state == 'hard':