Fix file module to support = in args; remove superflous call in get_url
This commit is contained in:
parent
4ac5fcf3a3
commit
62393ccc7c
2 changed files with 2 additions and 2 deletions
2
file
2
file
|
@ -135,7 +135,7 @@ if not len(items):
|
||||||
|
|
||||||
params = {}
|
params = {}
|
||||||
for x in items:
|
for x in items:
|
||||||
(k, v) = x.split("=")
|
(k, v) = x.split("=",1)
|
||||||
params[k] = v
|
params[k] = v
|
||||||
|
|
||||||
state = params.get('state','file')
|
state = params.get('state','file')
|
||||||
|
|
2
get_url
2
get_url
|
@ -60,7 +60,7 @@ def url_do_get(module, url, dest):
|
||||||
|
|
||||||
if os.path.isdir(dest):
|
if os.path.isdir(dest):
|
||||||
urlfilename = url_filename(url)
|
urlfilename = url_filename(url)
|
||||||
actualdest = "%s/%s" % (dest, url_filename(url))
|
actualdest = "%s/%s" % (dest, urlfilename)
|
||||||
module.params['path'] = actualdest
|
module.params['path'] = actualdest
|
||||||
else:
|
else:
|
||||||
actualdest = dest
|
actualdest = dest
|
||||||
|
|
Loading…
Reference in a new issue