Skip to content

Commit

Permalink
fix isinstance check
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Jul 28, 2023
1 parent 0c69264 commit 98a376c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnscheck/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
SERVICE_REGEX_IGNORE_LIST: List[str] = yaml.safe_load(os.getenv('SERVICE_REGEX_IGNORE_LIST', '[]'))

def is_service_relevant(service_name: str) -> bool:
if SERVICE_REGEX_IGNORE_LIST is not None and isinstance(list, SERVICE_REGEX_IGNORE_LIST):
if SERVICE_REGEX_IGNORE_LIST is not None and isinstance(SERVICE_REGEX_IGNORE_LIST, list):
for regex in SERVICE_REGEX_IGNORE_LIST:
match = re.match(regex, service_name)
if match is not None:
Expand Down

0 comments on commit 98a376c

Please sign in to comment.