Bulk spelling improvement to modules-core (#5225)

* Correct spelling mistakes

* Correct more spelling issues

* merge conflict

* Revert typo in parms
This commit is contained in:
John R Barker 2016-10-13 15:47:50 +01:00 committed by Matt Clay
commit 25b6492d37
91 changed files with 908 additions and 148 deletions

View file

@ -100,7 +100,7 @@ options:
If you worry about portability, only the sha1 algorithm is available
on all platforms and python versions. The third party hashlib
library can be installed for access to additional algorithms.
Additionaly, if a checksum is passed to this parameter, and the file exist under
Additionally, if a checksum is passed to this parameter, and the file exist under
the C(dest) location, the destination_checksum would be calculated, and if
checksum equals destination_checksum, the file download would be skipped
(unless C(force) is true). '
@ -237,7 +237,7 @@ def url_get(module, url, dest, use_proxy, last_mod_time, force, timeout=10, head
if os.path.exists(tmp_dest):
module.fail_json(msg="%s is a file but should be a directory." % tmp_dest)
else:
module.fail_json(msg="%s directoy does not exist." % tmp_dest)
module.fail_json(msg="%s directory does not exist." % tmp_dest)
fd, tempname = tempfile.mkstemp(dir=tmp_dest)
else:

View file

@ -66,7 +66,7 @@ options:
body:
description:
- The body of the http request/response to the web service. If C(body_format) is set
to 'json' it will take an already formated JSON string or convert a data structure
to 'json' it will take an already formatted JSON string or convert a data structure
into JSON.
required: false
default: null
@ -383,7 +383,7 @@ def main():
dict_headers = module.params['headers']
if body_format == 'json':
# Encode the body unless its a string, then assume it is preformatted JSON
# Encode the body unless its a string, then assume it is pre-formatted JSON
if not isinstance(body, basestring):
body = json.dumps(body)
dict_headers['Content-Type'] = 'application/json'