ansible-doc: fix typo in output (#83205)

pull/82624/merge
flowerysong 7 months ago committed by GitHub
parent eb3ea3ce5c
commit f5b945bf6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- ansible-doc - fixed "inicates" typo in output

@ -1304,7 +1304,7 @@ class DocCLI(CLI, RoleMixin):
text.append('') text.append('')
if doc.get('options'): if doc.get('options'):
text.append(_format("Options", 'bold') + " (%s inicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red')) text.append(_format("Options", 'bold') + " (%s indicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent) DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent)
if doc.get('attributes', False): if doc.get('attributes', False):
@ -1398,7 +1398,7 @@ class DocCLI(CLI, RoleMixin):
if doc.get('options', False): if doc.get('options', False):
text.append("") text.append("")
text.append(_format("OPTIONS", 'bold') + " (%s inicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red')) text.append(_format("OPTIONS", 'bold') + " (%s indicates it is required):" % ("=" if C.ANSIBLE_NOCOLOR else 'red'))
DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent, man=(display.verbosity == 0)) DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent, man=(display.verbosity == 0))
if doc.get('attributes', False): if doc.get('attributes', False):

@ -5,7 +5,7 @@ ENTRY POINT: *alternate* - testns.testcol.testrole short description for alterna
Longer description for testns.testcol.testrole alternate Longer description for testns.testcol.testrole alternate
entry point. entry point.
Options (= inicates it is required): Options (= indicates it is required):
= altopt1 altopt1 description = altopt1 altopt1 description
type: int type: int

@ -2,7 +2,7 @@
this is a fake module this is a fake module
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
- _notreal really not a real option - _notreal really not a real option
default: null default: null

@ -11,7 +11,7 @@ ENTRY POINT: *main* - test_role1 from roles subdir
fat case left use. Match round scale now style far times. fat case left use. Match round scale now style far times.
Your me past an much. Your me past an much.
Options (= inicates it is required): Options (= indicates it is required):
= myopt1 First option. = myopt1 First option.
type: str type: str

@ -7,7 +7,7 @@ DEPRECATED:
Will be removed in: Ansible 3.0.0 Will be removed in: Ansible 3.0.0
Alternatives: Use some other module Alternatives: Use some other module
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
- sub Suboptions. - sub Suboptions.
set_via: set_via:

@ -15,7 +15,7 @@ DEPRECATED:
Will be removed in: Ansible 3.0.0 Will be removed in: Ansible 3.0.0
Alternatives: Use some other module Alternatives: Use some other module
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
- sub Suboptions. Contains `sub.subtest', which can be set to `123'. - sub Suboptions. Contains `sub.subtest', which can be set to `123'.
You can use `TEST_ENV' to set this. You can use `TEST_ENV' to set this.

@ -1,6 +1,6 @@
Test module Test module
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
- with_suboptions An option with suboptions. - with_suboptions An option with suboptions.
Use with care. Use with care.

@ -1,6 +1,6 @@
Test module Test module
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
- at_the_top Short desc - at_the_top Short desc
default: some string default: some string

@ -2,7 +2,7 @@
This is always true This is always true
OPTIONS (= inicates it is required): OPTIONS (= indicates it is required):
= _input does not matter = _input does not matter
type: raw type: raw

Loading…
Cancel
Save