summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Pisarski <s.pisarski@cablelabs.com>2018-02-05 20:12:24 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-05 20:12:24 +0000
commitcb3b62b22a81660b0ab142410176d128e8207e28 (patch)
tree3ad48f85b9764e2147b825c5311b10c9dd6de912
parentcf91f88c2e3fb0fd54a7f33f44e0a8196a8481fb (diff)
parentf4a60323a5653f416023b482faf58015154c0e57 (diff)
Merge "Fixed OSCreds retrieval."
-rw-r--r--snaps/openstack/create_user.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/snaps/openstack/create_user.py b/snaps/openstack/create_user.py
index 5da3a5e..64912b3 100644
--- a/snaps/openstack/create_user.py
+++ b/snaps/openstack/create_user.py
@@ -91,6 +91,9 @@ class OpenStackUser(OpenStackIdentityObject):
credentials
:return:
"""
+ if not project_name:
+ project_name = self._os_creds.project_name
+
return OSCreds(
username=self.user_settings.name,
password=self.user_settings.password,