fix synchronizer not restarted after changing servicecontroller
Change-Id: Icc20c4d5737a064e5d99565f93b87a3e7acc33f3
diff --git a/xos/core/models/service.py b/xos/core/models/service.py
index 63432b3..39ebf58 100644
--- a/xos/core/models/service.py
+++ b/xos/core/models/service.py
@@ -85,11 +85,12 @@
def save(self, *args, **kwargs):
super(LoadableModule, self).save(*args, **kwargs)
-# XXX handling this in the LoadableModuleResource syncstep instead
-# if self.xos:
-# # force XOS to rebuild
-# # XXX somewhat hackish XXX
-# self.xos.save(update_fields=["updated"])
+ # This is necessary, as the XOS syncstep handles rerunning the docker-
+ # compose.
+ if self.xos:
+ # force XOS to rebuild
+ # XXX somewhat hackish XXX
+ self.xos.save(update_fields=["updated"])
def get_provides_list(self):
prov_list = []