Jim Fehlig 0f350a4d07 tools: Fix detection of remote libvirt access in virt-qemu-sev-validate
The VM's firmware path is not extracted from the XML when invoking
virt-qemu-sev-validate in insecure mode and connecting to the local libvirt

virt-qemu-sev-validate --insecure --tk tek-tik.bin --domain test-sev-es
ERROR: Cannot access firmware path remotely

The test for remote access compares the return value from socket.gethostname()
to the return value from conn.getHostname(). The former doesn't always return
the fqdn, whereas the latter does. Use socket.getfqdn() instead.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2023-02-03 11:28:56 -07:00
..
2023-02-02 16:18:08 +01:00
2023-02-02 16:18:08 +01:00
2019-08-09 09:03:53 +02:00
2023-02-02 16:18:08 +01:00
2023-02-02 16:18:08 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00