summaryrefslogtreecommitdiffstats
path: root/3rd_party/collectd-ves-app/ves_app
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2017-10-17 12:47:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-17 12:47:47 +0000
commitb31e3a5d11c2f052915b6828a772c73ca9c724e6 (patch)
tree2c07e301d77552c3f5d35c72bdbcdb7db2676a18 /3rd_party/collectd-ves-app/ves_app
parent20289029422f9b6d3a8ca06ca4df89918d9d1ba6 (diff)
parent85c9becd6ee4d81a46b98e3c735666002e879ca2 (diff)
Merge "Simplify RE validation"
Diffstat (limited to '3rd_party/collectd-ves-app/ves_app')
-rw-r--r--3rd_party/collectd-ves-app/ves_app/normalizer.py4
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