summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--heat/common/context.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/heat/common/context.py b/heat/common/context.py
index 7a1827cda..64eef397a 100644
--- a/heat/common/context.py
+++ b/heat/common/context.py
@@ -106,6 +106,8 @@ class RequestContext(context.RequestContext):
self.username = username
self.password = password
+ if username is None and password is None:
+ self.username = self.user_name
self.region_name = region_name
self.aws_creds = aws_creds
self.project_name = project_name