Browse code

Support UPLOAD_LEGACY_TTY

Dean Troyer authored on 2011/11/06 06:15:11
Showing 1 changed files
... ...
@@ -78,12 +78,27 @@ GLANCE_HOST=$1
78 78
 GLANCE_PORT=$2
79 79
 
80 80
 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
82 92
 [environment]
83 93
 aki_location = $DEST/openstack-integration-tests/include/sample_vm/$DIST_NAME-server-cloudimg-amd64-vmlinuz-virtual
84 94
 #ari_location = $DEST/openstack-integration-tests/include/sample_vm/$DIST_NAME-server-cloudimg-amd64-loader
85 95
 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
86 100
 
101
+cat >>$CONFIG_FILE_TMP <<EOF
87 102
 [glance]
88 103
 host = $GLANCE_HOST
89 104
 apiver = v1