In 2.8 disks have been added to runtime files for hotplug support.
Back then physical_id slot existed. Remove this slot in the early
stage of Disk.FromDict() otherwise an exception will be raised.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
"""Custom function for Disks
"""
+ if "physical_id" in val:
+ del val["physical_id"]
obj = super(Disk, cls).FromDict(val)
if obj.children:
obj.children = outils.ContainerFromDicts(obj.children, list, Disk)