mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Fix timeoutSeconds parameter
This commit is contained in:
parent
465c5b0791
commit
4d117dff6f
@ -466,7 +466,8 @@ func (r *Request) TimeoutSeconds(d time.Duration) *Request {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
if d != 0 {
|
if d != 0 {
|
||||||
r.Param("timeoutSeconds", d.String())
|
timeout := int64(d.Seconds())
|
||||||
|
r.Param("timeoutSeconds", strconv.FormatInt(timeout, 10))
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user