summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaron Yogev <yaronyogev@gmail.com>2017-08-23 13:57:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-23 13:57:52 +0000
commit3abb112a58ea4b9d8229ce628b72a5a0b66ec54f (patch)
tree48d74a9506bb48c9b8ed9a2e2de6795b94770889
parent906374fa2fd7773fabd38d670aec78cd073df50e (diff)
parent749593b5ce78dd3fd564b9c83a188053192e109e (diff)
Merge "fix matching of CLI output against regexp list"
-rw-r--r--app/discover/fetchers/cli/cli_access.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/discover/fetchers/cli/cli_access.py b/app/discover/fetchers/cli/cli_access.py
index 11579bd..24f2975 100644
--- a/app/discover/fetchers/cli/cli_access.py
+++ b/app/discover/fetchers/cli/cli_access.py
@@ -202,6 +202,6 @@ class CliAccess(BinaryConverter, Fetcher):
regex = regexp_tuple['re']
regex = re.compile(regex)
matches = regex.search(line)
- if matches:
+ if matches and name not in o:
o[name] = matches.group(1)
break