From 1ed53a557a53f72d743d56c1daa9bf39054a4d23 Mon Sep 17 00:00:00 2001 From: "Gareth J. Greenaway" Date: Wed, 18 Sep 2019 18:30:21 -0700 Subject: [PATCH] Porting PR #51915 to 2019.2.1 --- salt/states/zabbix_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/zabbix_host.py b/salt/states/zabbix_host.py index 23220ad4143b..4eecb04b04b4 100644 --- a/salt/states/zabbix_host.py +++ b/salt/states/zabbix_host.py @@ -122,7 +122,7 @@ def _interface_format(interfaces_data): interface_type = interface_ports[value['type'].lower()][0] main = '1' if six.text_type(value.get('main', 'true')).lower() == 'true' else '0' useip = '1' if six.text_type(value.get('useip', 'true')).lower() == 'true' else '0' - interface_ip = value.get('ip') + interface_ip = value.get('ip', '') dns = value.get('dns', key) port = six.text_type(value.get('port', interface_ports[value['type'].lower()][1]))