mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
tools: Fix style issues in virt-qemu-sev-validate
The script had an incorrect interpreter line until commit f6a19d7264bb, so the flake8 check would not realize it needed to pick it up and these issues, some of which were present it the very first version that was committed, were not being reported. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f6a19d7264
commit
6c4f5af9a0
@ -849,7 +849,7 @@ class ConfidentialVM(abc.ABC):
|
||||
secret64 = b64encode(secret_table_ciphertext).decode('utf8')
|
||||
log.debug("Header: %s (%d bytes)", header64, len(header))
|
||||
log.debug("Secret: %s (%d bytes)",
|
||||
secret64, len(secret_table_ciphertext))
|
||||
secret64, len(secret_table_ciphertext))
|
||||
|
||||
return header64, secret64
|
||||
|
||||
@ -955,7 +955,7 @@ class LibvirtConfidentialVM(ConfidentialVM):
|
||||
self.dom = self.conn.lookupByName(id_name_uuid)
|
||||
|
||||
log.debug("VM: id=%d name=%s uuid=%s",
|
||||
self.dom.ID(), self.dom.name(), self.dom.UUIDString())
|
||||
self.dom.ID(), self.dom.name(), self.dom.UUIDString())
|
||||
|
||||
if not self.dom.isActive():
|
||||
raise InvalidStateException(
|
||||
@ -1331,5 +1331,6 @@ def main():
|
||||
print("ERROR: %s" % e, file=sys.stderr)
|
||||
sys.exit(6)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user