Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
netbox-icinga-config-generator
Commits
80a6b6a8
Verified
Commit
80a6b6a8
authored
Feb 19, 2022
by
Adrian Schollmeyer
Browse files
generator/host: Handle unspecified APT checking mode properly
parent
b9ccb560
Changes
1
Hide whitespace changes
Inline
Side-by-side
generate-icinga-generic-host.py
View file @
80a6b6a8
...
...
@@ -267,9 +267,9 @@ def create_icinga2_host_object_from_netbox(netbox, device_name):
elif
apt
==
"passive"
:
host
.
add_apt_passive
()
else
:
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
pass
except
KeyError
:
pass
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment