| ... | ... |
@@ -193,6 +193,11 @@ function configure_glance {
|
| 193 | 193 |
iniset $GLANCE_API_CONF cors allowed_origin "http://$SERVICE_HOST" |
| 194 | 194 |
fi |
| 195 | 195 |
|
| 196 |
+ if [[ "$GLANCE_STANDALONE" == "False" ]]; then |
|
| 197 |
+ # NOTE(danms): Do not advertise import methods if we are running in WSGI mode |
|
| 198 |
+ iniset $GLANCE_API_CONF enabled_import_methods [] |
|
| 199 |
+ fi |
|
| 200 |
+ |
|
| 196 | 201 |
# No multiple stores for swift yet |
| 197 | 202 |
# Store the images in swift if enabled. |
| 198 | 203 |
if is_service_enabled s-proxy; then |