Merge pull request #10254 from fidencio/topic/remove-amd-specific-warning-from-non-amd-systems

runtime: Don't error out about SNP cert path on non SNP platforms
This commit is contained in:
Fabiano Fidêncio
2024-09-04 23:42:32 +02:00
committed by GitHub

View File

@@ -299,6 +299,16 @@ func (h hypervisor) firmware() (string, error) {
}
func (h hypervisor) snpCertsPath() (string, error) {
// snpCertsPath only matter when using Confidential Guests
if !h.ConfidentialGuest {
return "", nil
}
// snpCertsPath only matter for SNP guests
if !h.SevSnpGuest {
return "", nil
}
p := h.SnpCertsPath
if p == "" {