From 7d40d73ab204e5206c1b99c60bf908992397d7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Mon, 25 Aug 2025 13:04:12 +0200 Subject: [PATCH] fix: indentation error --- tagreader/utils.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tagreader/utils.py b/tagreader/utils.py index 89c69444..8b63336c 100644 --- a/tagreader/utils.py +++ b/tagreader/utils.py @@ -275,22 +275,22 @@ def get_mac_dns_search_list(): print(f"An unexpected error occurred: {e}") return [] - if any( - domain in get_mac_dns_search_list() - for domain in ["client.statoil.net", "statoil.net", "equinor.com"] - ): - return True + if any( + domain in get_mac_dns_search_list() + for domain in ["client.statoil.net", "statoil.net", "equinor.com"] + ): + return True - s = subprocess.run( - ["security", "find-certificate", "-a", "-c" "client.statoil.net"], - stdout=subprocess.PIPE, - ).stdout + s = subprocess.run( + ["security", "find-certificate", "-a", "-c" "client.statoil.net"], + stdout=subprocess.PIPE, + ).stdout - # deepcode ignore IdenticalBranches: Not an error. First test is just more precise. - if hostname + ".client.statoil.net" in str(s): - return True - elif "client.statoil.net" in hostname and hostname in str(s): - return True + # deepcode ignore IdenticalBranches: Not an error. First test is just more precise. + if hostname + ".client.statoil.net" in str(s): + return True + elif "client.statoil.net" in hostname and hostname in str(s): + return True else: raise OSError( f"Unsupported system: {platform.system()}. Please report this as an issue."