1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 06:56:29 +00:00

vendor change

This commit is contained in:
kinarashah
2019-09-25 19:31:01 -07:00
committed by Alena Prokharchyk
parent 5153dfd8b8
commit 88449ec73b
596 changed files with 95933 additions and 113274 deletions

View File

@@ -150,13 +150,7 @@ func (t *Time) UnmarshalJSON(b []byte) error {
return err
}
// If the value was something like -0.1 the negative is lost in the
// parsing because of the leading zero, this ensures that we capture it.
if len(p[0]) > 0 && p[0][0] == '-' && v+va > 0 {
*t = Time(v+va) * -1
} else {
*t = Time(v + va)
}
*t = Time(v + va)
default:
return fmt.Errorf("invalid time %q", string(b))