MCPcopy Create free account
hub / github.com/bvcyber/RedWizard / parse_yaml

Function parse_yaml

tools/create-ssh-config.py:92–97  ·  view source on GitHub ↗

Safely parse the YAML file from disk

(filename)

Source from the content-addressed store, hash-verified

90 return hosts
91
92def parse_yaml(filename):
93 """
94 Safely parse the YAML file from disk
95 """
96 with open(filename, 'r') as stream:
97 return yaml.safe_load(stream)
98
99def create_host_string(hostname, host_vars, codename):
100 """

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected