aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-23 16:56:15 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-23 16:56:15 +0300
commit749593b5ce78dd3fd564b9c83a188053192e109e (patch)
tree1608547d38a8a67c591d5a2fa308fafa8eb7588c
parent8fba52d145a5537ea924462e4701573ff3578193 (diff)
fix matching of CLI output against regexp list
Change-Id: Iadc2eb1bc7763e759946f31ddf333ee83d84ac70 Signed-off-by: yayogev <yaronyogev@gmail.com>
-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