Skip to content

Commit 3d63d22

Browse files
Liam YoungfreyesCorey Bryant
authored
Cherry picks/stable/ussuri (#732)
* Use yaml.safe_load() Pyyaml>=6.0 requires to pass the Loader arg to yaml.load(), switching to yaml.safe_load() recovers the old and expected behavior. yaml/pyyaml#561 Closes-Bug: #1951650 * Use snapshot_support=True for manila share type The extra specs of a manila share type need to match the share service's capabilities. [1] [1] https://docs.openstack.org/manila/pike/admin/shared-file-systems-troubleshoot.html#id2 Closes-Bug: #1962204 Co-authored-by: Felipe Reyes <[email protected]> Co-authored-by: Corey Bryant <[email protected]>
1 parent 1f98cbc commit 3d63d22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zaza/openstack/charm_tests/manila_ganesha/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ def setup_ganesha_share_type(manila_client=None):
4242
extra_specs={
4343
'vendor_name': 'Ceph',
4444
'storage_protocol': 'NFS',
45-
'snapshot_support': False,
45+
'snapshot_support': True,
4646
})

zaza/openstack/charm_tests/neutron/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _assert_result_match(self, action_result, resource_list,
285285

286286
# extract data from juju action
287287
action_data = action_result.data.get('results', {}).get(resource_name)
288-
resources_from_action = yaml.load(action_data)
288+
resources_from_action = yaml.safe_load(action_data)
289289

290290
# pull resource IDs from expected resource list and juju action data
291291
expected_resource_ids = {resource['id'] for resource in resource_list}

0 commit comments

Comments
 (0)