use openstack cli instead of keystone cli

keystone cli is no longer supported, let's use openstack cli instead

Change-Id: Ia3f764fb9c829098fdb89f73259a9f3b1c3119a7
This commit is contained in:
ZhiQiang Fan 2016-04-19 15:58:55 +08:00 committed by Steve Martinelli
parent 41580add20
commit 154a1bd18e
1 changed files with 1 additions and 3 deletions

View File

@ -44,9 +44,7 @@ disk_size=$(openstack flavor show baremetal -f value -c disk)
ephemeral_size=$(openstack flavor show baremetal -f value -c "OS-FLV-EXT-DATA:ephemeral")
expected_local_gb=$(($disk_size + $ephemeral_size))
# FIXME(dtantsur): switch to OSC as soon as `openstack endpoint list` actually
# works on devstack
ironic_url=$(keystone endpoint-get --service baremetal | tail -n +4 | head -n -1 | tr '|' ' ' | awk '{ print $2; }')
ironic_url=$(openstack endpoint show baremetal -f value -c publicurl)
if [ -z "$ironic_url" ]; then
echo "Cannot find Ironic URL"
exit 1