From 6188d36f7d85d94d8db7b0f2a7140646fd681f55 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Thu, 6 Sep 2018 09:55:26 -0700 Subject: [PATCH] fix regresssion for scheduling https://github.com/rancher/rancher/issues/15379. Fix the regression introduced by https://github.com/rancher/types/pull/535. We accidently remove the whitespace between in and notin. --- mapper/scheduling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapper/scheduling.go b/mapper/scheduling.go index 3cccd096..5dc0d89b 100644 --- a/mapper/scheduling.go +++ b/mapper/scheduling.go @@ -14,7 +14,7 @@ import ( ) var ( - exprRegexp = regexp.MustCompile("^(.*?)\\s*(=|!=|<|>|in|notin)\\s*(.*)$") + exprRegexp = regexp.MustCompile("^(.*?)\\s*(=|!=|<|>| in | notin )\\s*(.*)$") ) type SchedulingMapper struct {