resolve some small issues
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
a255c1125d
commit
026df90ec1
@ -105,7 +105,9 @@ var UpgradeApp = cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
} else {
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
stacks, err := stack.GetStacks(cl)
|
stacks, err := stack.GetStacks(cl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
@ -121,7 +123,6 @@ var UpgradeApp = cli.Command{
|
|||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -309,7 +310,6 @@ func mergeAbraShEnv(recipeName string, env config.AppEnv) error {
|
|||||||
|
|
||||||
// createDeployConfig merges and enriches the compose config for the deployment
|
// createDeployConfig merges and enriches the compose config for the deployment
|
||||||
func createDeployConfig(recipeName string, stackName string, env config.AppEnv) (*composetypes.Config, stack.Deploy, error) {
|
func createDeployConfig(recipeName string, stackName string, env config.AppEnv) (*composetypes.Config, stack.Deploy, error) {
|
||||||
// Workaround, is there a better way?
|
|
||||||
env["STACK_NAME"] = stackName
|
env["STACK_NAME"] = stackName
|
||||||
|
|
||||||
deployOpts := stack.Deploy{
|
deployOpts := stack.Deploy{
|
||||||
|
@ -486,7 +486,7 @@ If a service is failing to even start, try smoke out the error with:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Copypasta from https://github.com/docker/cli/blob/master/cli/command/stack/swarm/list.go because I could't import "github.com/docker/cli/cli/command/stack/swarm"
|
// Copypasta from https://github.com/docker/cli/blob/master/cli/command/stack/swarm/list.go
|
||||||
// GetStacks lists the swarm stacks.
|
// GetStacks lists the swarm stacks.
|
||||||
func GetStacks(cl *dockerClient.Client) ([]*formatter.Stack, error) {
|
func GetStacks(cl *dockerClient.Client) ([]*formatter.Stack, error) {
|
||||||
services, err := cl.ServiceList(
|
services, err := cl.ServiceList(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user