Verified Commit b8cb1fba authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

generic-host: Fix handling of missing IP address

parent 58cc9081
......@@ -2,8 +2,8 @@ object Host "{{ vars.name }}" {
import "netbox-generated-host-pre"
// === ADDRESSING ===
{% if vars.address is defined %}address = "{{ vars.address }}"{% endif %}
{% if vars.address6 is defined %}address6 = "{{ vars.address6 }}"{% endif %}
{% if vars.address %}address = "{{ vars.address }}"{% endif %}
{% if vars.address6 %}address6 = "{{ vars.address6 }}"{% endif %}
// === NOTIFICATIONS AND WEBACCESS ===
vars.notification.mail = []
......
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