From 930d5d88b75d0774e5b7631fdcc4c88145351c1f Mon Sep 17 00:00:00 2001 From: Michael Overmeyer Date: Fri, 18 Aug 2017 15:16:06 -0400 Subject: Fix #24546 (#24562) --- contrib/inventory/cobbler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/inventory/cobbler.py') diff --git a/contrib/inventory/cobbler.py b/contrib/inventory/cobbler.py index 5b18cdd269..896fc73588 100755 --- a/contrib/inventory/cobbler.py +++ b/contrib/inventory/cobbler.py @@ -190,7 +190,7 @@ class CobblerInventory(object): if this_dns_name is not None and this_dns_name is not "": dns_name = this_dns_name - if dns_name == '': + if dns_name == '' or dns_name is None: continue status = host['status'] -- cgit v1.2.1