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*".
This commit is contained in:
parent
c062f37984
commit
ff37e5364c
1 changed files with 7 additions and 7 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue