From 781f265ca40758e461aff9f0fa68f52651b1d9c3 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Fri, 25 Oct 2024 11:06:45 +0200 Subject: [PATCH] update deevirt metadata --- deevirt_schema/libvirt/dom/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deevirt_schema/libvirt/dom/config.py b/deevirt_schema/libvirt/dom/config.py index d7c594e..54db4ae 100644 --- a/deevirt_schema/libvirt/dom/config.py +++ b/deevirt_schema/libvirt/dom/config.py @@ -20,12 +20,15 @@ class UnitEnum(str, Enum): GiB = "GiB" TiB = "TiB" -class MetadataDeevirt(BaseXmlModel, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}): +class MetadataDeevirt(BaseXmlModel, tag="instance"): company_id:UUID4 = element() datacenter_id:UUID4 = element() +class MetadataDeevirtNS(MetadataDeevirt, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}): + pass + class Metadata(BaseXmlModel): - instance:Optional[MetadataDeevirt] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}) + instance:Optional[MetadataDeevirtNS] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}) class OSType(BaseXmlModel, search_mode='ordered'): class archEnum(str, Enum):