diff options
author | Michael Overmeyer <m.overmeyer@yahoo.ca> | 2017-08-18 15:16:06 -0400 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2017-08-18 15:16:06 -0400 |
commit | 930d5d88b75d0774e5b7631fdcc4c88145351c1f (patch) | |
tree | bc191a8396504edb8f0c91c31ebf68e4e8db8372 /contrib | |
parent | ccdea1c3b86be198fc87eb81853900d49ee60b9b (diff) | |
download | ansible-930d5d88b75d0774e5b7631fdcc4c88145351c1f.tar.gz |
Fix #24546 (#24562)
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/inventory/cobbler.py | 2 |
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'] |