Move service strategy to registry/service package

This commit is contained in:
feihujiang
2015-10-23 16:19:20 +08:00
parent fcbf1c1012
commit 3603b14977
8 changed files with 123 additions and 119 deletions

View File

@@ -211,7 +211,7 @@ func (c *Controller) CreateOrUpdateMasterServiceIfNeeded(serviceName string, ser
Type: serviceType,
},
}
if err := rest.BeforeCreate(rest.Services, ctx, svc); err != nil {
if err := rest.BeforeCreate(service.Strategy, ctx, svc); err != nil {
return err
}