MCPcopy Create free account
hub / github.com/aws/aws-cli / ordered_yaml_load

Function ordered_yaml_load

awscli/customizations/eks/ordered_yaml.py:30–38  ·  view source on GitHub ↗

Load an OrderedDict object from a yaml stream.

(stream)

Source from the content-addressed store, hash-verified

28
29
30def ordered_yaml_load(stream):
31 """Load an OrderedDict object from a yaml stream."""
32 yaml = ruamel.yaml.YAML(typ="safe", pure=True)
33 yaml.Constructor.add_constructor(
34 ruamel.yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
35 _ordered_constructor,
36 )
37
38 return yaml.load(stream)
39
40
41def ordered_yaml_dump(to_dump, stream=None):

Callers 3

test_validMethod · 0.90
test_invalidMethod · 0.90
load_kubeconfigMethod · 0.90

Calls 1

loadMethod · 0.45

Tested by 2

test_validMethod · 0.72
test_invalidMethod · 0.72