diff --git a/lib/glance b/lib/glance index 2118636a46..5fc7a7f0c3 100644 --- a/lib/glance +++ b/lib/glance @@ -193,6 +193,11 @@ function configure_glance { iniset $GLANCE_API_CONF cors allowed_origin "http://$SERVICE_HOST" fi + if [[ "$GLANCE_STANDALONE" == "False" ]]; then + # NOTE(danms): Do not advertise import methods if we are running in WSGI mode + iniset $GLANCE_API_CONF enabled_import_methods [] + fi + # No multiple stores for swift yet # Store the images in swift if enabled. if is_service_enabled s-proxy; then