From ff37e5364c7921a9db3415e328924f51ce5fa9ba Mon Sep 17 00:00:00 2001 From: njohnston Date: Wed, 7 Nov 2018 15:24:59 +0000 Subject: [PATCH] Typo and style fixes in docs and messages for svc module (#48298) Minor typo and style fixes in documentation. Fixed two error messages which incorrectly used "Could" instead of "Could *not*". --- lib/ansible/modules/system/svc.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/system/svc.py b/lib/ansible/modules/system/svc.py index 120c334b51..89c99039ee 100644 --- a/lib/ansible/modules/system/svc.py +++ b/lib/ansible/modules/system/svc.py @@ -37,21 +37,21 @@ options: downed: description: - Should a 'down' file exist or not, if it exists it disables auto startup. - defaults to no. Downed does not imply stopped. + Defaults to no. Downed does not imply stopped. type: bool default: 'no' enabled: description: - - Wheater the service is enabled or not, if disabled it also implies stopped. - Make note that a service can be enabled and downed (no auto restart). + - Whether the service is enabled or not, if disabled it also implies stopped. + Take note that a service can be enabled and downed (no auto restart). type: bool service_dir: description: - - directory svscan watches for services + - Directory svscan watches for services default: /service service_src: description: - - directory where services are defined, the source of symlinks to service_dir. + - Directory where services are defined, the source of symlinks to service_dir. ''' EXAMPLES = ''' @@ -273,7 +273,7 @@ def main(): else: svc.disable() except (OSError, IOError) as e: - module.fail_json(msg="Could change service link: %s" % to_native(e)) + module.fail_json(msg="Could not change service link: %s" % to_native(e)) if state is not None and state != svc.state: changed = True @@ -290,7 +290,7 @@ def main(): else: os.unlink(d_file) except (OSError, IOError) as e: - module.fail_json(msg="Could change downed file: %s " % (to_native(e))) + module.fail_json(msg="Could not change downed file: %s " % (to_native(e))) module.exit_json(changed=changed, svc=svc.report())