Always sort VM list

Same justification as previous commit.
This commit is contained in:
Joshua Boniface 2022-08-09 12:05:40 -04:00
parent 05a316cdd6
commit bcabd7d079
1 changed files with 1 additions and 0 deletions

View File

@ -1193,6 +1193,7 @@ def get_list(zkhandler, node, state, tag, limit, is_fuzzy=True, negate=False):
return False, 'VM state "{}" is not valid.'.format(state) return False, 'VM state "{}" is not valid.'.format(state)
full_vm_list = zkhandler.children("base.domain") full_vm_list = zkhandler.children("base.domain")
full_vm_list.sort()
# Set our limit to a sensible regex # Set our limit to a sensible regex
if limit: if limit: