Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ruamel.yaml initialization #160

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ansible_risk_insight/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@

def _set_yaml():
if not _yaml.get(None):
_yaml.set(YAML(typ="rt", pure=True))
_yaml.default_flow_style = False
_yaml.preserve_quotes = True
_yaml.allow_duplicate_keys = True
yaml = YAML(typ="rt", pure=True)
yaml.default_flow_style = False
yaml.preserve_quotes = True
yaml.allow_duplicate_keys = True
_yaml.set(yaml)


def load(stream: any):
Expand Down
Loading