1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 05:09:10 +00:00

Fix secret types

This commit is contained in:
Darren Shepherd
2017-12-28 09:49:37 -07:00
parent cdfe5ebb78
commit ee9dc3fbfa
4 changed files with 80 additions and 50 deletions

View File

@@ -75,6 +75,7 @@ func Set(data map[string]interface{}) {
if i, err := convert.ToTimestamp(val); err == nil {
if time.Unix(i/1000, 0).Add(5 * time.Second).Before(time.Now()) {
data["state"] = "active"
data["transitioning"] = "no"
return
}
}