Don't yamlify args containing only digits and underscores

Fixes #16583.
This commit is contained in:
Erik Johnson 2014-10-13 02:22:27 -05:00
parent 1fdf232c5c
commit 26deb6aaf5

View File

@ -89,6 +89,9 @@ def yamlify_arg(arg):
# True # True
return arg return arg
elif all([x in '0123456789_' for x in arg.strip()]):
return arg
try: try:
# Explicit late import to avoid circular import. DO NOT MOVE THIS. # Explicit late import to avoid circular import. DO NOT MOVE THIS.
import salt.utils.yamlloader as yamlloader import salt.utils.yamlloader as yamlloader