mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 09:42:45 +00:00
runtime: Don't error out about SNP cert path on non SNP platforms
This error is specific to SNP platforms, so let's make sure we only error this out when an SNP platform is used. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
parent
13517cf9c1
commit
b10256a7ca
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user