diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-08-23 12:23:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-23 12:23:58 +0000 |
commit | aa427a97dcc96afe5b7c9c168470fd49e9331da8 (patch) | |
tree | f7ab1aac20bed93d550f786ef82195c740151683 /testcases/OpenStack/tempest/run_tempest.py | |
parent | a01dbcf5d10a2433eb4cb29d03677820996b9eb5 (diff) | |
parent | 3e95a1cd0721924e89e2cfd2960d4736bc6c5588 (diff) |
Merge "when create/get/update failed return None rather than False"
Diffstat (limited to 'testcases/OpenStack/tempest/run_tempest.py')
-rwxr-xr-x | testcases/OpenStack/tempest/run_tempest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/OpenStack/tempest/run_tempest.py b/testcases/OpenStack/tempest/run_tempest.py index 7d023f5d..64a5ed77 100755 --- a/testcases/OpenStack/tempest/run_tempest.py +++ b/testcases/OpenStack/tempest/run_tempest.py @@ -132,12 +132,12 @@ def create_tempest_resources(): tenant_id = os_utils.create_tenant(keystone_client, TENANT_NAME, TENANT_DESCRIPTION) - if tenant_id == '': + if not tenant_id: logger.error("Error : Failed to create %s tenant" % TENANT_NAME) user_id = os_utils.create_user(keystone_client, USER_NAME, USER_PASSWORD, None, tenant_id) - if user_id == '': + if not user_id: logger.error("Error : Failed to create %s user" % USER_NAME) logger.debug("Creating private network for Tempest suite") |