1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Changes required due to labels type change in ServiceConfig

This commit is contained in:
deniseschannon
2015-04-29 20:47:47 -07:00
parent 5eeba6e070
commit 0e4f0fe292
4 changed files with 65 additions and 65 deletions

View File

@@ -77,7 +77,7 @@ func (c *containerBasedService) Name() string {
}
func isSystemService(serviceConfig *project.ServiceConfig) bool {
return util.GetValue(serviceConfig.Labels, config.SCOPE) == config.SYSTEM
return serviceConfig.Labels.MapParts()[config.SCOPE] == config.SYSTEM
}
func (c *ContainerFactory) Create(project *project.Project, name string, serviceConfig *project.ServiceConfig) (project.Service, error) {