summaryrefslogtreecommitdiff
path: root/tools/sample_data.sh
diff options
context:
space:
mode:
authorGhe Rivero <ghe.rivero@hp.com>2015-08-01 05:16:28 +0200
committerGhe Rivero <ghe.rivero@hp.com>2015-08-01 05:16:28 +0200
commit6cd2e5eccdad0005c4a69d85aa6918cfc33062c5 (patch)
tree50536766b25bb7161441a8fc479d19c1698ac8e0 /tools/sample_data.sh
parente614b299408b65a6558888b1f4930a9b641f1920 (diff)
downloadkeystone-6cd2e5eccdad0005c4a69d85aa6918cfc33062c5.tar.gz
Missing ADMIN_USER in sample_data.sh
When moving from keystone to openstack client, the initialization of the ADMIN_USER variable was removed, making the script to fail. Change-Id: Iee2d5b1cbed6c93e335a4b4dbad3034a2f8e29ed
Diffstat (limited to 'tools/sample_data.sh')
-rwxr-xr-xtools/sample_data.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sample_data.sh b/tools/sample_data.sh
index 4646b40ee..bb1eada8e 100755
--- a/tools/sample_data.sh
+++ b/tools/sample_data.sh
@@ -232,6 +232,7 @@ if [[ -z "$DISABLE_ENDPOINTS" ]]; then
fi
# create ec2 creds and parse the secret and access key returned
+ADMIN_USER=$(get_id openstack user show admin)
RESULT=$(openstack ec2 credentials create --project service --user $ADMIN_USER)
ADMIN_ACCESS=`echo "$RESULT" | grep access | awk '{print $4}'`
ADMIN_SECRET=`echo "$RESULT" | grep secret | awk '{print $4}'`