Commit 51ef343e by Nandor Sivok

cobbler inventory list systems without mgmt_classes as ungrouped

parent b7f229d3
......@@ -96,6 +96,10 @@ if len(sys.argv) == 2 and (sys.argv[1] == '--list'):
# first DNS name but no further DNS names
groups[cls].append(dns_name)
# handle hosts without mgmt_classes
if not classes:
groups['ungrouped'].append(dns_name)
print json.dumps(groups)
sys.exit(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment