Copy nova-api-paste.ini if n-api* is enabled
In multi node devstack using multi-host nova-networking, n-api-meta runs
on every machine but n-api only runs on the API node. So copy
nova-api-paste.ini if any version of n-api* is running.
Change-Id: I323f39f5080b94e22907a173a1a2bc4a324567b8
diff --git a/lib/nova b/lib/nova
index 78906f7..9a8614b 100644
--- a/lib/nova
+++ b/lib/nova
@@ -257,7 +257,7 @@
configure_nova_rootwrap
- if is_service_enabled n-api; then
+ if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
# Remove legacy paste config if present
rm -f $NOVA_DIR/bin/nova-api-paste.ini