Set volume default value to 1

In python3, the function max(None, int)
 raise a typeError exception.

Change-Id: I8f0b8bf4fcfc3371e9249ec6460874c5382f8cbe
This commit is contained in:
licanwei 2019-10-31 10:33:09 +08:00
parent 569bf8541b
commit d1517415db

View File

@ -200,7 +200,7 @@ class ScenarioTest(tempest.test.BaseTestCase):
server = clients.servers_client.show_server(body['id'])['server'] server = clients.servers_client.show_server(body['id'])['server']
return server return server
def create_volume(self, name=None, imageRef=None, size=None, def create_volume(self, name=None, imageRef=None, size=1,
volume_type=None, clients=None): volume_type=None, clients=None):
if clients is None: if clients is None: