diff options
author | Peter Barabas <peter.barabas@ericsson.com> | 2017-10-16 10:28:31 +0200 |
---|---|---|
committer | Peter Barabas <peter.barabas@ericsson.com> | 2017-10-16 10:31:10 +0200 |
commit | 85c9becd6ee4d81a46b98e3c735666002e879ca2 (patch) | |
tree | 854e8d2b9c3fe0f9e8a29ecd56be49ddc09bcf56 /3rd_party/collectd-ves-app | |
parent | d37a178a681a61de2924e3835ec3726aaa7af38c (diff) |
Simplify RE validation
Change-Id: Icbafb709556cb644c42a35303f5cc76500f404ee
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
Diffstat (limited to '3rd_party/collectd-ves-app')
-rw-r--r-- | 3rd_party/collectd-ves-app/ves_app/normalizer.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/3rd_party/collectd-ves-app/ves_app/normalizer.py b/3rd_party/collectd-ves-app/ves_app/normalizer.py index 48a379c7..ddaad617 100644 --- a/3rd_party/collectd-ves-app/ves_app/normalizer.py +++ b/3rd_party/collectd-ves-app/ves_app/normalizer.py @@ -216,9 +216,7 @@ class CollectdData(object): @classmethod def is_regular_expression(cls, expr): - if len(expr) > 1 and expr[0] == '/' and expr[-1] == '/': - return True - return False + return len(expr) > 1 and expr[0] == '/' and expr[-1] == '/' def match(self, **kargs): # compare the metric |