change VM

This commit is contained in:
Jonathan Gohier 2024-10-16 12:23:53 +02:00
parent a2386b94d2
commit 778b18f393
1 changed files with 4 additions and 4 deletions

View File

@ -40,10 +40,10 @@ class OSBootOrder(BaseModel):
class OSInfo(BaseModel): class OSInfo(BaseModel):
model_config = ConfigDict(from_attributes=True) model_config = ConfigDict(from_attributes=True)
name:str = Field(alias="os.name", serialization_alias="os_name") name:str = Field(alias="os.name")
version:str = Field(alias="os.version-id", serialization_alias="os_version") version:str = Field(alias="os.version-id")
machine:str = Field(alias="os.machine", serialization_alias="os_machine") machine:str = Field(alias="os.machine")
kernel:str = Field(alias="os.kernel-release", serialization_alias="os_kernel_release") kernel:str = Field(alias="os.kernel-release")
class OS(BaseModel): class OS(BaseModel):
firmware:configDom.OS.firmwareEnum = Field(default=configDom.OS.firmwareEnum.bios, description="Microprogramme") firmware:configDom.OS.firmwareEnum = Field(default=configDom.OS.firmwareEnum.bios, description="Microprogramme")