Set context username if session client is used
Now context username is set from X-Auth-User header, that is not set with session client. This results in stack_owner attribute None for newly created stacks. This commit sets context username from auth token in case of absent X-Auth-User header. Affects all releases at least since Ocata. Story: 2007856 Change-Id: I9cba3495fd472769498486d52d3909bff03010d4
This commit is contained in:
parent
9f931119ba
commit
402750b099
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue