Browse code

Invoke create_nova_conf_neutron from odl-compute post-install only if nova is enabled.

Change-Id: I4627ab97eccd7fd4a2ffc31b6a0bb939b2343659

Flavio Fernandes authored on 2014/06/16 13:36:03
Showing 1 changed files
... ...
@@ -40,7 +40,9 @@ if is_service_enabled odl-compute; then
40 40
     elif [[ "$1" == "stack" && "$2" == "install" ]]; then
41 41
         install_opendaylight-compute
42 42
     elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
43
-        create_nova_conf_neutron
43
+        if is_service_enabled nova; then
44
+            create_nova_conf_neutron
45
+        fi
44 46
     elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
45 47
         echo_summary "Initializing OpenDaylight"
46 48
         ODL_LOCAL_IP=${ODL_LOCAL_IP:-$HOST_IP}