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

Fix file module to support = in args; remove superflous call in get_url

This commit is contained in:
Jan-Piet Mens 2012-07-23 07:51:33 +02:00
parent 153f3932b5
commit 628b289ab3
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ if not len(items):
params = {}
for x in items:
(k, v) = x.split("=")
(k, v) = x.split("=",1)
params[k] = v
state = params.get('state','file')

View file

@ -60,7 +60,7 @@ def url_do_get(module, url, dest):
if os.path.isdir(dest):
urlfilename = url_filename(url)
actualdest = "%s/%s" % (dest, url_filename(url))
actualdest = "%s/%s" % (dest, urlfilename)
module.params['path'] = actualdest
else:
actualdest = dest