From 628b289ab39c7175f42cc3f70c5f19fdc9045a1a Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Mon, 23 Jul 2012 07:51:33 +0200 Subject: [PATCH] Fix file module to support = in args; remove superflous call in get_url --- library/file | 2 +- library/get_url | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/file b/library/file index 0c85ed3a88..e39e55bef1 100755 --- a/library/file +++ b/library/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') diff --git a/library/get_url b/library/get_url index 8bf3cbfbdd..4d82f8abfc 100755 --- a/library/get_url +++ b/library/get_url @@ -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