mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Fine tune sanity (#53544)
* modify regex to use implicit charsets this should solve issues in py3 and unicode names * fix issue with subgroups in yaml inventory * clarify deprecation message * separated per name warning from deprecation * move noise to verbosity, simplify warnings * fix docs to reflect actual 'good' practice * change toggle to choice list to give users more options
This commit is contained in:
parent
86ba4f3e46
commit
9b67219096
5 changed files with 40 additions and 22 deletions
|
@ -119,7 +119,8 @@ VAULT_VERSION_MIN = 1.0
|
|||
VAULT_VERSION_MAX = 1.0
|
||||
|
||||
# This matches a string that cannot be used as a valid python variable name i.e 'not-valid', 'not!valid@either' '1_nor_This'
|
||||
INVALID_VARIABLE_NAMES = re.compile(r'^[^a-zA-Z_]|[^a-zA-Z0-9_]')
|
||||
INVALID_VARIABLE_NAMES = re.compile(r'^[\d\W]|[^\w]')
|
||||
|
||||
|
||||
# FIXME: remove once play_context mangling is removed
|
||||
# the magic variable mapping dictionary below is used to translate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue