Cobbler inventory script should ignore hosts with `dns_name is None`, not just `dns_name == ''` #24546
No changes to
OS / ENVIRONMENT
The Cobbler inventory script discards hosts that have the empty string for a DNS name, but not those that fail to set the
STEPS TO REPRODUCE
Create a system in cobbler with a single static interface and no DNS name.
sudo cobbler system add --name=test --profile=centos7-x86_64 --interface=eth0 --static=1
Then run cobbler.py
The host with no DNS name would also be ignored, as claimed at the top of cobbler.py.
When called implicitly as part of any ansible command, cobbler.py returns a JSON object with a
Which causes Ansible to fail when it tries to load the inventory:
There's a check for
The text was updated successfully, but these errors were encountered: