Unverified Commit e11a4bf8 authored by Brian Downs's avatar Brian Downs Committed by GitHub

set duration to second (#4231)

parent 0452f017
package cmds
import (
"time"
"github.com/rancher/k3s/pkg/version"
"github.com/urfave/cli"
)
......@@ -84,9 +86,9 @@ var EtcdSnapshotFlags = []cli.Flag{
},
&cli.DurationFlag{
Name: "s3-timeout,etcd-s3-timeout",
Usage: "(db) S3 timeout in seconds",
Usage: "(db) S3 timeout",
Destination: &ServerConfig.EtcdS3Timeout,
Value: 30,
Value: 30 * time.Second,
},
}
......
......@@ -341,9 +341,9 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
},
&cli.DurationFlag{
Name: "etcd-s3-timeout",
Usage: "(db) S3 timeout in seconds",
Usage: "(db) S3 timeout",
Destination: &ServerConfig.EtcdS3Timeout,
Value: 30,
Value: 30 * time.Second,
},
cli.StringFlag{
Name: "default-local-storage-path",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment