mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #25682 from basepi/fix.hash.parsing
[2015.5] Fix parsing args with just a hash (#)
This commit is contained in:
commit
6a5c6dcd04
@ -109,7 +109,7 @@ def yamlify_arg(arg):
|
|||||||
# Only yamlify if it parses into a non-string type, to prevent
|
# Only yamlify if it parses into a non-string type, to prevent
|
||||||
# loss of content due to # as comment character
|
# loss of content due to # as comment character
|
||||||
parsed_arg = yamlloader.load(arg, Loader=yamlloader.SaltYamlSafeLoader)
|
parsed_arg = yamlloader.load(arg, Loader=yamlloader.SaltYamlSafeLoader)
|
||||||
if isinstance(parsed_arg, string_types):
|
if isinstance(parsed_arg, string_types) or parsed_arg is None:
|
||||||
return arg
|
return arg
|
||||||
return parsed_arg
|
return parsed_arg
|
||||||
if arg == 'None':
|
if arg == 'None':
|
||||||
|
Loading…
Reference in New Issue
Block a user