mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Misc typo fixes (#49816)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
7609a8cdd6
commit
013c42b14f
24 changed files with 37 additions and 37 deletions
|
@ -461,7 +461,7 @@ DEFAULT_BECOME_FLAGS:
|
|||
- {key: become_flags, section: privilege_escalation}
|
||||
DEFAULT_BECOME_USER:
|
||||
# FIXME: should really be blank and make -u passing optional depending on it
|
||||
name: Set the user you 'become' via privlege escalation
|
||||
name: Set the user you 'become' via privilege escalation
|
||||
default: root
|
||||
description: The user your login/remote user 'becomes' when using privilege escalation, most systems will use 'root' when no user is specified.
|
||||
env: [{name: ANSIBLE_BECOME_USER}]
|
||||
|
|
|
@ -431,11 +431,11 @@ class ConfigManager(object):
|
|||
else:
|
||||
value = defs[config].get('default')
|
||||
origin = 'default'
|
||||
# skip typing as this is a temlated default that will be resolved later in constants, which has needed vars
|
||||
# skip typing as this is a templated default that will be resolved later in constants, which has needed vars
|
||||
if plugin_type is None and isinstance(value, string_types) and (value.startswith('{{') and value.endswith('}}')):
|
||||
return value, origin
|
||||
|
||||
# ensure correct type, can raise exceptoins on mismatched types
|
||||
# ensure correct type, can raise exceptions on mismatched types
|
||||
try:
|
||||
value = ensure_type(value, defs[config].get('type'), origin=origin)
|
||||
except ValueError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue