diff --git a/manila/tests/share/drivers/dell_emc/plugins/unity/utils.py b/manila/tests/share/drivers/dell_emc/plugins/unity/utils.py index 8597167446..72917c32a8 100644 --- a/manila/tests/share/drivers/dell_emc/plugins/unity/utils.py +++ b/manila/tests/share/drivers/dell_emc/plugins/unity/utils.py @@ -27,7 +27,7 @@ patch_system = mock.patch('storops.UnitySystem') def load_yaml(file_name): yaml_file = '{}/{}'.format(path.dirname(path.abspath(__file__)), file_name) with open(yaml_file) as f: - res = yaml.load(f) + res = yaml.safe_load(f) LOG.debug('Loaded yaml mock objects from %s.', yaml_file) return res