Skip to content

Commit

Permalink
Fix get_vtpm_uuid() function
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tescande committed Sep 26, 2023
1 parent 2346148 commit 923b5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 923b5c2

Please sign in to comment.