mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Fix parsing timestamp in test
This commit is contained in:
parent
34c6fe3baa
commit
3eb420b773
1 changed files with 1 additions and 1 deletions
|
|
@ -1860,7 +1860,7 @@ type scaleUpStatus struct {
|
|||
// Try to get timestamp from status.
|
||||
// Status configmap is not parsing-friendly, so evil regexpery follows.
|
||||
func getStatusTimestamp(status string) (time.Time, error) {
|
||||
timestampMatcher, err := regexp.Compile("Cluster-autoscaler status at \\s*([0-9\\-]+ [0-9]+:[0-9]+:[0-9]+\\.[0-9]+ \\+[0-9]+ [A-Za-z]+):")
|
||||
timestampMatcher, err := regexp.Compile("Cluster-autoscaler status at \\s*([0-9\\-]+ [0-9]+:[0-9]+:[0-9]+\\.[0-9]+ \\+[0-9]+ [A-Za-z]+)")
|
||||
if err != nil {
|
||||
return time.Time{}, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue