Fix reload service when config updated
service.enabled can be used with watch_in. This patch fixes that
and use service.running.
There is an example of error when applying state:
----------
ID: opencontrail_compute_services
Function: service.enabled
Name: supervisor-vrouter
Result: False
Comment: Unable to trigger watch for service.enabled
Started: 10:40:25.445146
Duration: 0.785 ms
Changes:
Change-Id: Id0745ebb3ac08f8bedae3b7d74797831213105ff
diff --git a/opencontrail/compute.sls b/opencontrail/compute.sls
index 7df9d2b..37ef69f 100644
--- a/opencontrail/compute.sls
+++ b/opencontrail/compute.sls
@@ -152,7 +152,7 @@
{%- endif %}
opencontrail_compute_services:
- service.enabled:
+ service.running:
- names: {{ compute.services }}
{%- if grains.get('noservices') %}
- onlyif: /bin/false