kube-shell
kube-shell copied to clipboard
Specify yaml.FullLoader in yaml.load_all statement
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]