mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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):
|
def _validate_variable_keys(ds):
|
||||||
for key in ds:
|
for key in ds:
|
||||||
if not isidentifier(key):
|
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:
|
try:
|
||||||
if isinstance(ds, dict):
|
if isinstance(ds, dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user