From 6d8397f18ac20a372d9c8b0fca8a8afd3ef318a0 Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Wed, 1 Jul 2015 23:38:19 +0800 Subject: [PATCH] Add domain when list users in heat-keystone-setup-domain Add domain when list users in heat-keystone-setup-domain Change-Id: Ib4379e3880f206caed757a2718f31b82201f4495 Closes-Bug: #1470567 --- bin/heat-keystone-setup-domain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/heat-keystone-setup-domain b/bin/heat-keystone-setup-domain index 4d6ac7ad38..5210a635a8 100755 --- a/bin/heat-keystone-setup-domain +++ b/bin/heat-keystone-setup-domain @@ -137,7 +137,8 @@ def main(): description="Heat domain admin") except kc_exception.Conflict: logger.warning("User %s already exists" % HEAT_DOMAIN_ADMIN) - domain_admin = c.users.list(name=HEAT_DOMAIN_ADMIN)[0] + domain_admin = c.users.list(name=HEAT_DOMAIN_ADMIN, + domain=heat_domain)[0] # Make the user a domain admin roles_list = c.roles.list()