You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/lib/python3.7/site-packages/curator/utils.py:53: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details
The problem is this line:
try:
return yaml.load(read_file(path))
except yaml.scanner.ScannerError as err: except yaml.scanner.ScannerError as err:
As discussed on the page linked in the error this problem needs to be changed to something like:
This is a known issue, and is reported in #1415, and is tied to #1368. I can't address #1415 until I can safely address #1368. To address #1368 requires breaking changes to the API.
This will be addressed in the next major version of Curator, and unfortunately, not before.
Expected Behavior
Script should not warn about loading YAML file
Actual Behavior
We are getting the following error when running:
/usr/local/lib/python3.7/site-packages/curator/utils.py:53: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details
The problem is this line:
try:
return yaml.load(read_file(path))
except yaml.scanner.ScannerError as err: except yaml.scanner.ScannerError as err:
As discussed on the page linked in the error this problem needs to be changed to something like:
return yaml.load(read_file(path), Loader=yaml.FullLoader)
or:
return yaml.load(read_file(path), Loader=yaml.SafeLoader)
Steps to Reproduce the Problem
Run the script
Specifications
Context (Environment)
This is effecting us cause we are seeing:
The problem is this line:
try:
return yaml.load(read_file(path))
except yaml.scanner.ScannerError as err: except yaml.scanner.ScannerError as err:
As discussed on the page linked in the error this problem needs to be changed to something like:
return yaml.load(read_file(path), Loader=yaml.FullLoader)
or:
return yaml.load(read_file(path), Loader=yaml.SafeLoader)
The text was updated successfully, but these errors were encountered: