Make open file as rb mode for murano rally test
Murano rally test will failed when open file as r mode in python3, change open as rb mode to pass the test in python3. Change-Id: I84221bc1991e48cbdd0f07e967719a36b2b8c98e
This commit is contained in:
parent
d139fe7352
commit
d0f3d937d2
@ -66,7 +66,7 @@ class PackageGenerator(context.Context):
|
||||
# TODO(astudenov): use self.generate_random_name()
|
||||
package = clients.murano().packages.create(
|
||||
{"categories": ["Web"], "tags": ["tag"]},
|
||||
{"file": open(zip_name)})
|
||||
{"file": open(zip_name, "rb")})
|
||||
|
||||
self.context["tenants"][tenant_id]["packages"].append(package)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user