From c54f66efa894373fb6afa096905f36aeece4abc6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 23 Jun 2021 19:17:35 -0400 Subject: [PATCH] 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. --- daemon-common/vm.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index e0fd7edd..a426a29c 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -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: