mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Don't yamlify args containing only digits and underscores
Fixes #16583.
This commit is contained in:
parent
1fdf232c5c
commit
26deb6aaf5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user