mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
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:
@@ -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 == "" {
|
||||
|
Reference in New Issue
Block a user