Page MenuHomeDevCentral

Load safely YAML in Python
ClosedPublic

Authored by dereckson on Dec 16 2019, 09:54.
Tags
None
Referenced Files
F11678938: D2114.id.diff
Tue, Sep 9, 17:18
F11675299: D2114.id5334.diff
Tue, Sep 9, 09:36
Unknown Object (File)
Mon, Sep 8, 16:13
Unknown Object (File)
Mon, Sep 8, 13:19
Unknown Object (File)
Sun, Sep 7, 18:51
Unknown Object (File)
Sun, Sep 7, 11:30
Unknown Object (File)
Tue, Sep 2, 01:37
Unknown Object (File)
Wed, Aug 20, 05:04
Subscribers
None

Details

Summary

Per https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

All our YAML documents can be loaded with the SafeLoader,
as we don't construct Pickle-style Python objects.

Test Plan

utils/next-uid.py

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Errorutils/dump-py-state.py:64E501flake8 E501
Unit
No Test Coverage
Branch
fix-load
Build Status
Buildable 3294
Build 3543: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Dec 16 2019, 09:55
This revision was landed with ongoing or failed builds.Dec 16 2019, 09:55
This revision was automatically updated to reflect the committed changes.