From c3278c5fcbc03afbe89ae3d7751d7d8b758048ba Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 9 Jul 2019 22:05:49 +0200 Subject: [PATCH] libvirt-check-trim: support unversioned i440fx --- libvirt-check-trim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-check-trim b/libvirt-check-trim index 9fe6122..3dcbe43 100755 --- a/libvirt-check-trim +++ b/libvirt-check-trim @@ -28,7 +28,7 @@ for domain in conn.listAllDomains(): # machine type version should be >= 2.1 if i440fx machine = tree.os.type.get('machine') - matches = re.match('^pc-(?:i440fx-)?([0-9.]*)', machine) + matches = re.match('^pc-(?:i440fx-)?([0-9.]+)', machine) if matches: i440_version = matches.group(1) if LooseVersion(i440_version) < LooseVersion('2.1'):