mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
6 lines
217 B
Python
6 lines
217 B
Python
from yaml import load
|
|
from ansible.parsing.yaml.loader import AnsibleLoader
|
|
|
|
def safe_load(stream):
|
|
''' implements yaml.safe_load(), except using our custom loader class '''
|
|
return load(stream, AnsibleLoader)
|