From e8c6a10174a236dfc6fd48f889c29c89149edda8 Mon Sep 17 00:00:00 2001 From: nkondrashin Date: Wed, 20 Apr 2022 23:33:26 +0300 Subject: [PATCH] Allow regex and string in filter --- lib/stf/model/device.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stf/model/device.rb b/lib/stf/model/device.rb index 2d30bd6..3c87246 100644 --- a/lib/stf/model/device.rb +++ b/lib/stf/model/device.rb @@ -37,7 +37,7 @@ def healthy?(pattern) def checkFilter?(filter) return true if filter.nil? key, value = filter.split(':', 2) - getValue(key) == value + !/#{value}/.match(getValue(key)).nil? end def getKeysNextLevel(prefix, o)