Fix host sorting
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
14b34ce6bd
commit
ce762afe70
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ variable_manager = VariableManager(loader=loader, inventory=inv)
|
|||
|
||||
frozen = []
|
||||
unfrozen = []
|
||||
for host in sorted(inv.get_hosts()):
|
||||
for host in sorted(inv.get_hosts(), key=lambda host: host.name):
|
||||
vars = variable_manager.get_vars(host=host)
|
||||
freezes = vars.get('freezes', None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue