From 959b5fb376b5d951afdd8bef2ec2352ec421f415 Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Wed, 5 Jan 2022 06:34:20 +0300 Subject: [PATCH] Fix typo (double `_`) Fix typo (double `_`) --- vmtools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmtools.py b/vmtools.py index cde2c50..61b92cd 100644 --- a/vmtools.py +++ b/vmtools.py @@ -92,7 +92,7 @@ def delete_vm(api, config, vm_name): done = False try: vms_service = api.system_service().vms_service() - vm_search_regexp = ("name=%s%s__*" % (vm_name, config.get_vm_middle())) + vm_search_regexp = ("name=%s%s_*" % (vm_name, config.get_vm_middle())) for vm in vms_service.list(search=vm_search_regexp): logger.info("Delete cloned VM (%s) started ..." % vm.name) if not config.get_dry_run():