summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichael Overmeyer <m.overmeyer@yahoo.ca>2017-08-18 15:16:06 -0400
committeransibot <ansibot@users.noreply.github.com>2017-08-18 15:16:06 -0400
commit930d5d88b75d0774e5b7631fdcc4c88145351c1f (patch)
treebc191a8396504edb8f0c91c31ebf68e4e8db8372 /contrib
parentccdea1c3b86be198fc87eb81853900d49ee60b9b (diff)
downloadansible-930d5d88b75d0774e5b7631fdcc4c88145351c1f.tar.gz
Fix #24546 (#24562)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/cobbler.py2
1 files changed, 1 insertions, 1 deletions
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']