From: yayogev Date: Wed, 23 Aug 2017 13:56:15 +0000 (+0300) Subject: fix matching of CLI output against regexp list X-Git-Tag: opnfv-5.1.RC1~64^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=749593b5ce78dd3fd564b9c83a188053192e109e;p=calipso.git fix matching of CLI output against regexp list Change-Id: Iadc2eb1bc7763e759946f31ddf333ee83d84ac70 Signed-off-by: yayogev --- 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