mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Make it easier to read error message
This commit is contained in:
@@ -414,7 +414,7 @@ class Base:
|
||||
def _validate_variable_keys(ds):
|
||||
for key in ds:
|
||||
if not isidentifier(key):
|
||||
raise TypeError("%s is not a valid variable name" % key)
|
||||
raise TypeError("'%s' is not a valid variable name" % key)
|
||||
|
||||
try:
|
||||
if isinstance(ds, dict):
|
||||
|
||||
Reference in New Issue
Block a user