mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fixing a few non-salt functions which where showing up in the autodoc
These were showing up as state module functions: - yaml_load - YamlCustomLoader
This commit is contained in:
parent
843e01a7f4
commit
05f9987d57
@ -12,8 +12,8 @@ import json
|
|||||||
import salt.utils
|
import salt.utils
|
||||||
import salt.state
|
import salt.state
|
||||||
import salt.payload
|
import salt.payload
|
||||||
from salt.utils.yaml import load as yaml_load
|
from salt.utils.yaml import load as _yaml_load
|
||||||
from salt.utils.yaml import CustomLoader as YamlCustomLoader
|
from salt.utils.yaml import CustomLoader as _YamlCustomLoader
|
||||||
from salt._compat import string_types
|
from salt._compat import string_types
|
||||||
|
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ def single(fun, name, test=None, kwval_as='yaml', **kwargs):
|
|||||||
|
|
||||||
if kwval_as == 'yaml':
|
if kwval_as == 'yaml':
|
||||||
def parse_kwval(value):
|
def parse_kwval(value):
|
||||||
return yaml_load(value, YamlCustomLoader)
|
return _yaml_load(value, _YamlCustomLoader)
|
||||||
elif kwval_as == 'json':
|
elif kwval_as == 'json':
|
||||||
def parse_kwval(value):
|
def parse_kwval(value):
|
||||||
return json.loads(value)
|
return json.loads(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user