@@ -41,15 +41,9 @@ def create(self, *args, **kwargs): # noqa
4141 self ._update_service (namespace , self .procfile_type , routable , annotations )
4242
4343 def save (self , * args , ** kwargs ):
44- namespace = self .app .id
45- svc_name = "{}-{}" .format (self .id , self .procfile_type )
46- self .log ('updating Service: {}' .format (svc_name ), level = logging .DEBUG )
47- annotations = self ._gather_settings ()
48- routable = annotations .pop ('routable' )
49- self ._update_service (namespace , self .procfile_type , routable , annotations )
50-
51- # Save to DB
52- return super (Service , self ).save (* args , ** kwargs )
44+ service = super (Service , self ).save (* args , ** kwargs )
45+ self .create ()
46+ return service
5347
5448 def delete (self , * args , ** kwargs ):
5549 namespace = self .app .id
@@ -68,7 +62,7 @@ def delete(self, *args, **kwargs):
6862 def _gather_settings (self ):
6963 app_settings = self .app .appsettings_set .latest ()
7064 return {
71- 'domains' : "{}-{}" .format (self .app .id , self .procfile_type )
65+ 'domains' : "{}-{}" .format (self .app .id , self .procfile_type ),
7266 'maintenance' : app_settings .maintenance ,
7367 'routable' : app_settings .routable ,
7468 'proxyDomain' : self .app .id ,
0 commit comments