Skip to content

Commit

Permalink
deploy: remove references to flag that no longer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alichay committed Apr 5, 2023
1 parent 0c10060 commit 057afe0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/command/deploy/machines.go
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/superfly/flyctl/internal/appconfig"
"github.com/superfly/flyctl/internal/cmdutil"
machcmd "github.com/superfly/flyctl/internal/command/machine"
"github.com/superfly/flyctl/internal/flag"
"github.com/superfly/flyctl/internal/logger"
"github.com/superfly/flyctl/internal/machine"
"github.com/superfly/flyctl/iostreams"
Expand Down Expand Up @@ -109,12 +108,6 @@ func NewMachineDeployment(ctx context.Context, args MachineDeploymentArgs) (Mach
return nil, err
}
}
releaseCmdMemory := flag.GetInt(ctx, "release-command-memory")
if releaseCmdMemory == 0 {
return nil, fmt.Errorf("release-command-memory cannot be zero")
} else if releaseCmdMemory < 0 {
return nil, fmt.Errorf("release-command-memory must be a positive integer")
}
waitTimeout := args.WaitTimeout
if waitTimeout == 0 {
waitTimeout = DefaultWaitTimeout
Expand Down

0 comments on commit 057afe0

Please sign in to comment.