Page MenuHomeDevCentral

Load safely YAML in Python
ClosedPublic

Authored by dereckson on Dec 16 2019, 09:54.
Tags
None
Referenced Files
F25130051: D2114.id5334.diff
Tue, Mar 31, 19:39
Unknown Object (File)
Tue, Mar 31, 11:17
Unknown Object (File)
Mon, Mar 16, 13:32
Unknown Object (File)
Mon, Mar 16, 12:46
Unknown Object (File)
Sat, Mar 14, 10:56
Unknown Object (File)
Sat, Mar 14, 10:39
Unknown Object (File)
Fri, Mar 13, 01:44
Unknown Object (File)
Thu, Mar 12, 11:46
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.