Fix MARCONI_USER
This patch fixes the MARCONI_USER in create_marconi_accounts().
Change-Id: I9618530fa20ee84d25646107c7450017ada908df
diff --git a/lib/marconi b/lib/marconi
index 0aaff1b..e400419 100644
--- a/lib/marconi
+++ b/lib/marconi
@@ -154,10 +154,12 @@
MARCONI_USER=$(get_id keystone user-create --name=marconi \
--pass="$SERVICE_PASSWORD" \
--tenant-id $SERVICE_TENANT \
- --email=marconi@example.com)
+ --email=marconi@example.com \
+ | grep " id " | get_field 2)
keystone user-role-add --tenant-id $SERVICE_TENANT \
--user-id $MARCONI_USER \
--role-id $ADMIN_ROLE
+
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
MARCONI_SERVICE=$(keystone service-create \
--name=marconi \