diff options
author | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-04-19 15:46:43 +0800 |
---|---|---|
committer | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-04-19 20:40:22 +0800 |
commit | 5ccbea9623da9a988f8277b3227639cde28f3ec6 (patch) | |
tree | 489965f1c78d8ad27f593c72c86323c98eaab838 /tools | |
parent | 2f718d08e3cf3d78c6592381c89b1cb9879fbe62 (diff) | |
download | ceilometer-5ccbea9623da9a988f8277b3227639cde28f3ec6.tar.gz |
switch to openstack cli instead of keystone cli
keystone cli is dead, let's use openstack cli instead
Change-Id: I43219e4ab41c76e763096f0f87d8bb95ae6d2429
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make_test_data.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/make_test_data.sh b/tools/make_test_data.sh index 3576c6f8..23a93e88 100755 --- a/tools/make_test_data.sh +++ b/tools/make_test_data.sh @@ -16,10 +16,10 @@ else fi # Convert a possible project name to an id, if we have -# keystone installed. -if which keystone >/dev/null +# openstack cli installed. +if which openstack >/dev/null then - project=$(keystone tenant-list | grep " $project_name " | cut -f2 -d'|' | cut -f2 -d' ') + project=$(openstack project show "$project_name" -c id -f value) else # Assume they gave us the project id as argument. project="$project_name" |