TODO: fix parsing of glance results

This commit is contained in:
Andy Smith 2011-10-02 21:05:01 -03:00
parent 014e9130db
commit 2ff3f59e5b

View file

@ -577,7 +577,9 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
# add a debugging images to glance
KERNEL_ID=`glance add -A $SERVICE_TOKEN name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image`
KERNEL_ID=1 # FIXME: parse glance results
RAMDISK_ID=`glance add -A $SERVICE_TOKEN name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image`
RAMDISK_ID=2 # FIXME: parse glance results
glance add -A $SERVICE_TOKEN name="tty" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
fi