Skip to content

Commit 131db69

Browse files
ydirsonglehmann
authored andcommitted
BaseVM.is_cert_present: fix self param name
Problem reported by pyright. Signed-off-by: Yann Dirson <[email protected]>
1 parent 1bf9da9 commit 131db69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/vm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@ def set_uefi_user_mode(self):
585585
logging.info(f"Set VM {self.uuid} to UEFI user mode")
586586
self.host.ssh(["varstore-sb-state", self.uuid, "user"])
587587

588-
def is_cert_present(vm, key):
589-
res = vm.host.ssh(['varstore-get', vm.uuid, efi.get_secure_boot_guid(key).as_str(), key],
590-
check=False, simple_output=False, decode=False)
588+
def is_cert_present(self, key):
589+
res = self.host.ssh(['varstore-get', self.uuid, efi.get_secure_boot_guid(key).as_str(), key],
590+
check=False, simple_output=False, decode=False)
591591
return res.returncode == 0
592592

593593
def execute_powershell_script(

0 commit comments

Comments
 (0)