forked from toolshed/abra
		
	review: change label autoupdate -> auto-update
This commit is contained in:
		| @ -403,7 +403,7 @@ func tryUpgrade(cl *dockerclient.Client, stackName, recipeName string, conf *run | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	updatesEnabled, err := getBoolLabel(cl, stackName, "autoupdate") | ||||
| 	updatesEnabled, err := getBoolLabel(cl, stackName, "auto-update") | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| @ -414,7 +414,7 @@ func GetAppStatuses(apps []App, MachineReadable bool) (map[string]map[string]str | ||||
| 				result["chaosVersion"] = chaosVersion | ||||
| 			} | ||||
|  | ||||
| 			labelKey = fmt.Sprintf("coop-cloud.%s.autoupdate", name) | ||||
| 			labelKey = fmt.Sprintf("coop-cloud.%s.auto-update", name) | ||||
| 			if autoUpdate, ok := service.Spec.Labels[labelKey]; ok { | ||||
| 				result["autoUpdate"] = autoUpdate | ||||
| 			} else { | ||||
| @ -538,8 +538,8 @@ func SetUpdateLabel(compose *composetypes.Config, stackName string, appEnv AppEn | ||||
| 			if !exists { | ||||
| 				enable_auto_update = "false" | ||||
| 			} | ||||
| 			logrus.Debugf("set label 'coop-cloud.%s.autoupdate' to %s for %s", stackName, enable_auto_update, stackName) | ||||
| 			labelKey := fmt.Sprintf("coop-cloud.%s.autoupdate", stackName) | ||||
| 			logrus.Debugf("set label 'coop-cloud.%s.auto-update' to %s for %s", stackName, enable_auto_update, stackName) | ||||
| 			labelKey := fmt.Sprintf("coop-cloud.%s.auto-update", stackName) | ||||
| 			service.Deploy.Labels[labelKey] = enable_auto_update | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user