Fix empty str defaults in config/base.yml (#77733)

* fix empty str default for config/base.yml config options by rendering '' instead of ``''``

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
pull/79082/head
Sloane Hertel 3 years ago committed by GitHub
parent e208fe5932
commit eecc4046e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,11 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
:Type: {{config['type']}} :Type: {{config['type']}}
{% endif %} {% endif %}
{% if 'default' in config %} {% if 'default' in config %}
{% if config['default'] == '' %}
:Default: {{config['default']}}
{% else %}
:Default: ``{{config['default']}}`` :Default: ``{{config['default']}}``
{% endif %}
{% endif %} {% endif %}
{% if config.get('choices', False) %} {% if config.get('choices', False) %}
:Choices: :Choices:

@ -491,7 +491,7 @@ DEFAULT_BECOME_EXE:
- {key: become_exe, section: privilege_escalation} - {key: become_exe, section: privilege_escalation}
DEFAULT_BECOME_FLAGS: DEFAULT_BECOME_FLAGS:
name: Set 'become' executable options name: Set 'become' executable options
default: ~ default: ''
description: Flags to pass to the privilege escalation executable. description: Flags to pass to the privilege escalation executable.
env: [{name: ANSIBLE_BECOME_FLAGS}] env: [{name: ANSIBLE_BECOME_FLAGS}]
ini: ini:

Loading…
Cancel
Save