Browse code

Merge "Disable all import methods if glance is not standalone"

Zuul authored on 2020/07/21 06:12:46
Showing 1 changed files
... ...
@@ -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