]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: Fix style issues in virt-qemu-sev-validate
authorAndrea Bolognani <abologna@redhat.com>
Thu, 8 Dec 2022 17:00:13 +0000 (18:00 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 8 Dec 2022 17:09:29 +0000 (18:09 +0100)
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>
tools/virt-qemu-sev-validate

index 46a92aa7a011c909816785546b6f910c8459e32b..3d8b292fef04aa2b782ac83a559058459ca32ccc 100755 (executable)
@@ -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()