cpu config: sev type: small code style fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2025-04-03 20:55:12 +02:00
parent b6d98e13f5
commit 57bc05f7df

View File

@ -831,12 +831,15 @@ sub get_hw_capabilities {
}
return $hw_capabilities;
}
sub get_amd_sev_type {
my ($conf) = @_;
return undef if !$conf->{'amd-sev'};
return PVE::JSONSchema::parse_property_string($sev_fmt, $conf->{'amd-sev'})->{type};
my $sev = PVE::JSONSchema::parse_property_string($sev_fmt, $conf->{'amd-sev'});
return $sev->{type};
}
sub get_amd_sev_object {