If this service is disable in localrc, libvirt does not installed at all,
and should not be restarted.
Change-Id: Iaf482d4a82a26546c25249b3e32c7e629d862a1b
Closes: bug 1288236
... | ... |
@@ -308,7 +308,7 @@ function configure_nova { |
308 | 308 |
# Rebuild the config file from scratch |
309 | 309 |
create_nova_conf |
310 | 310 |
|
311 |
- if [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then |
|
311 |
+ if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then |
|
312 | 312 |
# Configure hypervisor plugin |
313 | 313 |
configure_nova_hypervisor |
314 | 314 |
fi |