Skip to content

Commit ff0ed1d

Browse files
author
Dean Troyer
committed
Support UPLOAD_LEGACY_TTY
1 parent a0e2948 commit ff0ed1d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tools/build_ci_config.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,27 @@ GLANCE_HOST=$1
7878
GLANCE_PORT=$2
7979

8080
CONFIG_FILE_TMP=$(mktemp $CONFIG_FILE.XXXXXX)
81-
cat >$CONFIG_FILE_TMP <<EOF
81+
if [ "$UPLOAD_LEGACY_TTY" ]; then
82+
cat >$CONFIG_FILE_TMP <<EOF
83+
[environment]
84+
aki_location = $DEST/devstack/files/images/aki-tty/image
85+
ari_location = $DEST/devstack/files/images/ari-tty/image
86+
ami_location = $DEST/devstack/files/images/ami-tty/image
87+
image_ref = 1
88+
flavor_ref = 1
89+
EOF
90+
else
91+
cat >$CONFIG_FILE_TMP <<EOF
8292
[environment]
8393
aki_location = $DEST/openstack-integration-tests/include/sample_vm/$DIST_NAME-server-cloudimg-amd64-vmlinuz-virtual
8494
#ari_location = $DEST/openstack-integration-tests/include/sample_vm/$DIST_NAME-server-cloudimg-amd64-loader
8595
ami_location = $DEST/openstack-integration-tests/include/sample_vm/$DIST_NAME-server-cloudimg-amd64.img
96+
image_ref = 1
97+
flavor_ref = 1
98+
EOF
99+
fi
86100

101+
cat >>$CONFIG_FILE_TMP <<EOF
87102
[glance]
88103
host = $GLANCE_HOST
89104
apiver = v1

0 commit comments

Comments
 (0)