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

Do not base synchronize source on the inventory directory

Fixes #7366
This commit is contained in:
James Cammarata 2014-05-12 12:02:38 -05:00
parent a6a1e240c6
commit 38c2c60849

View file

@ -38,10 +38,6 @@ class ActionModule(object):
# make sure the dwim'd path ends in a trailing "/"
# if the original path did
path += '/'
elif 'inventory_dir' in self.inject['vars']:
# non-roles
abs_dir = os.path.abspath(self.inject['vars']['inventory_dir'])
path = os.path.join(abs_dir, path)
return path