Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prometheus_aci_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,10 @@ def process_value(
self.regex_cache[regex_str] = regex

match = regex.match(property_value)
if match is not None:
if str(match) != "None" or match is not None:
match_dict = match.groupdict()
property_value = {k: v if v is not None else "" for (k, v) in match_dict.items()}
elif regex_must_match:
elif str(regex_must_match) == "False" or regex_must_match:
# it didn't match, though
return None

Expand Down