switch to openstack cli instead of keystone cli
keystone cli is dead, let's use openstack cli instead Change-Id: I43219e4ab41c76e763096f0f87d8bb95ae6d2429
This commit is contained in:
parent
2f718d08e3
commit
5ccbea9623
@ -16,10 +16,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Convert a possible project name to an id, if we have
|
# Convert a possible project name to an id, if we have
|
||||||
# keystone installed.
|
# openstack cli installed.
|
||||||
if which keystone >/dev/null
|
if which openstack >/dev/null
|
||||||
then
|
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
|
else
|
||||||
# Assume they gave us the project id as argument.
|
# Assume they gave us the project id as argument.
|
||||||
project="$project_name"
|
project="$project_name"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user