Dmitrii Kabanov 39b8aa8b96 Change: use environment variable for openrc in SPT
Change-Id: I4f61e0ac061263d249bfa210cc5f165fbfee2471
2017-03-20 16:01:41 -07:00

9 lines
186 B
Bash

#!/bin/bash
set -x
source $OPENRC
id=$(glance image-list | grep "spt-test-image" | cut -d' ' -f2)
/usr/bin/time -f%e glance image-download $id 2>&1 > /dev/null
glance image-delete $id