If n-api-meta is being run, remove from NOVA_ENABLED_APIS
If running n-api-meta as a separate service we shouldn't run it inside
of n-api. This patch is in support of Iddd44f7ee43b9287a788dea49eaa484316f8da04
Change-Id: I8a54cf13dc6083b78e89c9ea5413d9e4d8d4b37a
Related-Bug: #1270845
diff --git a/lib/nova b/lib/nova
index dbc5c3d..3ee28fa 100644
--- a/lib/nova
+++ b/lib/nova
@@ -389,6 +389,10 @@
fi
if is_service_enabled n-api; then
+ if is_service_enabled n-api-meta; then
+ # If running n-api-meta as a separate service
+ NOVA_ENABLED_APIS=$(echo $NOVA_ENABLED_APIS | sed "s/,metadata//")
+ fi
iniset $NOVA_CONF DEFAULT enabled_apis "$NOVA_ENABLED_APIS"
if is_service_enabled tls-proxy; then
# Set the service port for a proxy to take the original