mirror of
https://opendev.org/openstack/heat.git
synced 2026-01-16 23:00:55 +00:00
Fix test_cloud_config for PyYAML 5.1
PyYAML 5.1 changed default_flow_style=False. It's backward incompatible. Change-Id: I7b938b52b35d5546a674da50693c9c566f42120b Story: #2005401 Task: #30395
This commit is contained in:
parent
5bafd120bf
commit
f2faa5e1ae
1 changed files with 3 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
|||
# under the License.
|
||||
|
||||
import uuid
|
||||
import yaml
|
||||
|
||||
import mock
|
||||
|
||||
|
|
@ -53,6 +54,7 @@ class CloudConfigTest(common.HeatTestCase):
|
|||
kwargs = self.rpc_client.create_software_config.call_args[1]
|
||||
self.assertEqual({
|
||||
'name': self.config.physical_resource_name(),
|
||||
'config': '#cloud-config\n{foo: bar}\n',
|
||||
'config': '\n'.join(['#cloud-config',
|
||||
yaml.safe_dump({'foo': 'bar'})]),
|
||||
'group': 'Heat::Ungrouped'
|
||||
}, kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue