mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virt-host-validate: Drop extra "PASS"
If virt-host-validate is ran on a SEV-SNP capable machine, an
extra "PASS" is printed out. This is because
virHostValidateAMDSev() prints "PASS" and then returns 1
(indicating success) which in turn makes the caller
(virHostValidateSecureGuests()) print "PASS" again. Just drop the
extra printing in the caller and let virHostValidateAMDSev() do
all the printing.
Fixes: 1a8f646f29
Resolves: https://issues.redhat.com/browse/RHEL-46868
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
92333a2c4e
commit
c9fa43c48c
@ -488,11 +488,7 @@ int virHostValidateSecureGuests(const char *hvname,
|
|||||||
return VIR_VALIDATE_FAILURE(level);
|
return VIR_VALIDATE_FAILURE(level);
|
||||||
}
|
}
|
||||||
} else if (hasAMDSev) {
|
} else if (hasAMDSev) {
|
||||||
int rc = virHostValidateAMDSev(hvname, level);
|
return virHostValidateAMDSev(hvname, level);
|
||||||
|
|
||||||
if (rc > 0)
|
|
||||||
virValidatePass();
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virValidateFail(level,
|
virValidateFail(level,
|
||||||
|
Loading…
Reference in New Issue
Block a user