EGA-archive / LocalEGA

A federated storage for sensitive data
http://localega.readthedocs.io
Apache License 2.0
7 stars 16 forks source link

Fix tuple parsing in Yaml SafeLoader #98

Closed blankdots closed 4 years ago

blankdots commented 4 years ago

adding a consctructor for tuple to fix safeloader as it is missing it

When trying to parse tuple configuration for logging the following error occurs:

yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/tuple'
in "/usr/local/lib/python3.6/site-packages/lega/conf/loggers/default.yaml", line 24, column 14

This PR aims to fix it.

Describe the pull request:

Pull request long description:

Changes made:

  1. added the tuple constructor to SafeLoader

Related issues:

Identified in neicnordic/LocalEGA repo

Mentions:

@silverdaz for suggestion on the one-liner