diff options
author | yayogev <yaronyogev@gmail.com> | 2017-08-23 16:56:15 +0300 |
---|---|---|
committer | yayogev <yaronyogev@gmail.com> | 2017-08-23 16:56:15 +0300 |
commit | 749593b5ce78dd3fd564b9c83a188053192e109e (patch) | |
tree | 1608547d38a8a67c591d5a2fa308fafa8eb7588c /app/discover/fetchers | |
parent | 8fba52d145a5537ea924462e4701573ff3578193 (diff) |
fix matching of CLI output against regexp list
Change-Id: Iadc2eb1bc7763e759946f31ddf333ee83d84ac70
Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/fetchers')
-rw-r--r-- | app/discover/fetchers/cli/cli_access.py | 2 |
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 |