From 923b5c289118a7645f21acb62713369b5a182b24 Mon Sep 17 00:00:00 2001 From: Thierry Escande Date: Tue, 26 Sep 2023 12:07:51 +0200 Subject: [PATCH] Fix get_vtpm_uuid() function This patch fixes get_vtpm_uuid() as the vtpm-list command now uses 'vm-uuid' instead of 'vm' as parameter to specify the vm uuid. Signed-off-by: Thierry Escande --- lib/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vm.py b/lib/vm.py index e578dd261..0c799d3fc 100644 --- a/lib/vm.py +++ b/lib/vm.py @@ -412,7 +412,7 @@ def get_all_efi_bins(self): return binaries def get_vtpm_uuid(self): - return self.host.xe('vtpm-list', {'vm': self.uuid}, minimal=True) + return self.host.xe('vtpm-list', {'vm-uuid': self.uuid}, minimal=True) def create_vtpm(self): logging.info("Creating vTPM for vm %s" % self.uuid)