Skip to content

Commit

Permalink
Merge pull request #52783 from Ch3LL/fix_boto_yaml
Browse files Browse the repository at this point in the history
Fix boto_apigateway tests for PyYAML 5.1
  • Loading branch information
s0undt3ch committed May 2, 2019
2 parents 3509465 + cde29cb commit 316d05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/states/test_boto_apigateway.py
Expand Up @@ -229,7 +229,7 @@
description=('{\n'
' "api_name": "unit test api",\n'
' "swagger_file": "temp-swagger-sample.yaml",\n'
' "swagger_file_md5sum": "693c57997a12a2446bb5c08c793d943c",\n'
' "swagger_file_md5sum": "55a948ff90ad80ff747ec91657c7a299",\n'
' "swagger_info_object": {\n'
' "description": "salt boto apigateway unit test service",\n'
' "title": "salt boto apigateway unit test service",\n'
Expand Down Expand Up @@ -371,7 +371,7 @@ class TempSwaggerFile(object):
def __enter__(self):
self.swaggerfile = 'temp-swagger-sample.yaml'
with salt.utils.files.fopen(self.swaggerfile, 'w') as fp_:
salt.utils.yaml.safe_dump(self.swaggerdict, fp_)
salt.utils.yaml.safe_dump(self.swaggerdict, fp_, default_flow_style=False)
return self.swaggerfile

def __exit__(self, objtype, value, traceback):
Expand Down

0 comments on commit 316d05b

Please sign in to comment.