kube-shell icon indicating copy to clipboard operation
kube-shell copied to clipboard

Specify yaml.FullLoader in yaml.load_all statement

Open madmatt112 opened this issue 5 years ago • 0 comments

Currently, running kube-shell shows a PyYAML Loader deprecation warning because the yaml Loader type isn't specified in two "yaml.load_all" calls.
As per PyYAML documentation, after showing the warning, PyYAML defaults to using the FullLoader.
This change explicitly sets the FullLoader, which will suppress the error in a non-future-breaking way - that is, if a future PyYAML version exits instead of warning & defaulting when a Loader type is not specified.

Fixes #71 Fixes #73

Signed off by: Matthew Field [email protected]

madmatt112 avatar Nov 20 '19 15:11 madmatt112