Fixing role attribution in Keystone 93/7493/2
authorEduardo Sousa <eduardo.sousa@canonical.com>
Wed, 22 May 2019 21:58:51 +0000 (22:58 +0100)
committerEduardo Sousa <eduardo.sousa@canonical.com>
Wed, 22 May 2019 22:05:56 +0000 (23:05 +0100)
Corrects a bug in the init script that would not assign the role

Change-Id: I08e1f3a17b285faeccdd6d3b70f3ab6e1260310f
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
docker/Keystone/scripts/start.sh

index dafb23b..8dd61ad 100755 (executable)
@@ -119,7 +119,7 @@ source setup_env
 if [ -z $DB_EXISTS ] || [ -z $DB_NOT_EMPTY ]; then
     openstack user create --domain default --password "$SERVICE_PASSWORD" "$SERVICE_USERNAME"
     openstack project create --domain default --description "Service Project" "$SERVICE_PROJECT"
-    openstack role add --project "$SERVICE_PROJECT" --user "$SERVICE_USER" admin
+    openstack role add --project "$SERVICE_PROJECT" --user "$SERVICE_USERNAME" admin
     openstack role delete _member_
 fi