Skip to content

ruamel.yaml 0.18 breaks ara #524

@noonedeadpunk

Description

@noonedeadpunk

What is the issue ?

With release of ruamel.yaml 0.18 ara fails the playbook execution with the following error in output:

2023-10-24 07:47:54.494053 | ubuntu-jammy | /opt/ansible-runtime/lib/python3.10/site-packages/ara/server/settings.py:306: DeprecationWarning:
2023-10-24 07:47:54.635779 | ubuntu-jammy | dump has been removed, use
2023-10-24 07:47:54.635841 | ubuntu-jammy |
2023-10-24 07:47:54.635849 | ubuntu-jammy |   yaml=YAML(typ='unsafe', pure=True)
2023-10-24 07:47:54.635857 | ubuntu-jammy |   yaml.dump(...)
2023-10-24 07:47:54.635863 | ubuntu-jammy |
2023-10-24 07:47:54.635868 | ubuntu-jammy | instead of
2023-10-24 07:47:54.635874 | ubuntu-jammy |
2023-10-24 07:47:54.635899 | ubuntu-jammy |   yaml.dump({"default": SETTINGS}, settings_file, default_flow_style=False)
2023-10-24 07:47:54.635911 | ubuntu-jammy | [ara] No setting found for SECRET_KEY. Generating a random key...
2023-10-24 07:47:54.635918 | ubuntu-jammy | [ara] Creating data & configuration directory: /root/.ara/server
2023-10-24 07:47:54.635924 | ubuntu-jammy | [ara] Writing default settings to /root/.ara/server/settings.yaml
2023-10-24 07:47:54.635939 | ubuntu-jammy |

Bringing version of the package <0.18 solves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions