Verified Commit 80a6b6a8 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

generator/host: Handle unspecified APT checking mode properly

parent b9ccb560
......@@ -267,9 +267,9 @@ def create_icinga2_host_object_from_netbox(netbox, device_name):
elif apt == "passive":
raise Exception(
f"Invalid apt configuration '{apt}'! "
"Must be either active or passive")
# Not one of the predefined values means APT checking is not
# enabled
except KeyError:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment