Remove duplicated judgement
This is the same with I3dbe99b31ffb4d971d2ca7b4be21941f6f30d3cb
Because cred_client.create_user already has the judgement
"if 'user' in user:", so there is no need for the caller
to duplicate it.
Change-Id: I97fc39c90e7da094a384ac3e330e435a71313661
diff --git a/tempest/common/dynamic_creds.py b/tempest/common/dynamic_creds.py
index 04c9645..b96b1c0 100644
--- a/tempest/common/dynamic_creds.py
+++ b/tempest/common/dynamic_creds.py
@@ -136,8 +136,6 @@
email = data_utils.rand_name(root) + "@example.com"
user = self.creds_client.create_user(
username, user_password, project, email)
- if 'user' in user:
- user = user['user']
role_assigned = False
if admin:
self.creds_client.assign_user_role(user, project, self.admin_role)