Limit match only on VM name

I can see no possible reason to want to do limits against UUIDs, but
supporting that means match is not what one would expect since a random
UUID could match the limit. So only limit based on the name.
This commit is contained in:
Joshua Boniface 2021-06-23 19:17:35 -04:00
parent cd860bae6b
commit c54f66efa8
1 changed files with 0 additions and 2 deletions

View File

@ -843,8 +843,6 @@ def get_list(zkhandler, node, state, limit, is_fuzzy=True):
# Check on limit
if limit:
try:
if re.match(limit, vm):
is_limit_match = True
if re.match(limit, name):
is_limit_match = True
except Exception as e: