forked from toolshed/abra
fix review findings
This commit is contained in:
@ -95,7 +95,7 @@ func (r Recipe) GetVersionLabelLocal() (string, error) {
|
|||||||
|
|
||||||
for _, service := range config.Services {
|
for _, service := range config.Services {
|
||||||
for label, value := range service.Deploy.Labels {
|
for label, value := range service.Deploy.Labels {
|
||||||
log.Debugf("checking deploy label '%s'", label)
|
log.Debugf("checking deploy label '%s' with value '%s' for correct formatting", label, value)
|
||||||
if strings.HasPrefix(label, "coop-cloud") && strings.Contains(label, "version") {
|
if strings.HasPrefix(label, "coop-cloud") && strings.Contains(label, "version") {
|
||||||
return value, nil
|
return value, nil
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ func (r Recipe) EnsureExists() error {
|
|||||||
// EnsureVersion checks whether a specific version exists for a recipe.
|
// EnsureVersion checks whether a specific version exists for a recipe.
|
||||||
func (r Recipe) EnsureVersion(version string) (bool, error) {
|
func (r Recipe) EnsureVersion(version string) (bool, error) {
|
||||||
isChaosCommit := false
|
isChaosCommit := false
|
||||||
log.Debugf("Ensuring version '%s'", version)
|
log.Debugf("ensuring version '%s' exists for recipe '%s'", version, r.Name)
|
||||||
|
|
||||||
if err := gitPkg.EnsureGitRepo(r.Dir); err != nil {
|
if err := gitPkg.EnsureGitRepo(r.Dir); err != nil {
|
||||||
return isChaosCommit, err
|
return isChaosCommit, err
|
||||||
|
Reference in New Issue
Block a user