diff --git a/cli/app/deploy.go b/cli/app/deploy.go index 2ffa6573e..228cbe4d3 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -197,7 +197,7 @@ checkout as-is. Recipe commit hashes are also supported as values for log.Debug(i18n.G("skipping domain checks")) } - deployedVersion := config.NO_VERSION_DEFAULT + deployedVersion := config.MISSING_DEFAULT if deployMeta.IsDeployed { deployedVersion = deployMeta.Version if deployMeta.IsChaos { diff --git a/cli/app/undeploy.go b/cli/app/undeploy.go index e06b21861..9f9b1138f 100644 --- a/cli/app/undeploy.go +++ b/cli/app/undeploy.go @@ -73,7 +73,7 @@ Passing "--prune/-p" does not remove those volumes.`), if err := internal.DeployOverview( app, version, - config.NO_DOMAIN_DEFAULT, + config.MISSING_DEFAULT, "", nil, nil, diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index 1f166b57b..5d4706eaf 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -66,12 +66,12 @@ func DeployOverview( domain := app.Domain if domain == "" { - domain = config.NO_DOMAIN_DEFAULT + domain = config.MISSING_DEFAULT } envVersion := app.Recipe.EnvVersionRaw if envVersion == "" { - envVersion = config.NO_VERSION_DEFAULT + envVersion = config.MISSING_DEFAULT } rows := [][]string{ @@ -140,7 +140,7 @@ func DeployOverview( } func getDeployType(currentVersion, newVersion string) string { - if newVersion == config.NO_DOMAIN_DEFAULT { + if newVersion == config.MISSING_DEFAULT { return i18n.G("UNDEPLOY") } @@ -156,7 +156,7 @@ func getDeployType(currentVersion, newVersion string) string { return ("REDEPLOY") } - if currentVersion == config.NO_VERSION_DEFAULT { + if currentVersion == config.MISSING_DEFAULT { return i18n.G("NEW DEPLOY") } @@ -191,17 +191,17 @@ func MoveOverview( domain := app.Domain if domain == "" { - domain = config.NO_DOMAIN_DEFAULT + domain = config.MISSING_DEFAULT } secretsOverview := strings.Join(secrets, "\n") if len(secrets) == 0 { - secretsOverview = config.NO_SECRETS_DEFAULT + secretsOverview = config.MISSING_DEFAULT } volumesOverview := strings.Join(volumes, "\n") if len(volumes) == 0 { - volumesOverview = config.NO_VOLUMES_DEFAULT + volumesOverview = config.MISSING_DEFAULT } rows := [][]string{ diff --git a/pkg/config/abra.go b/pkg/config/abra.go index 23ace7f80..33f47c470 100644 --- a/pkg/config/abra.go +++ b/pkg/config/abra.go @@ -116,10 +116,7 @@ var ( DIRTY_DEFAULT = "+U" - NO_DOMAIN_DEFAULT = "-" - NO_VERSION_DEFAULT = "-" - NO_SECRETS_DEFAULT = "-" - NO_VOLUMES_DEFAULT = "-" + MISSING_DEFAULT = "-" UNKNOWN_DEFAULT = "unknown" )