mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
XenAPI defines the platform attribute of a VM as a string-string map but in various code paths in xend the platform entries are expected to be another type, e.g. int. This patch defines the types of each platform entry and converts the entry values to appropriate type when new domU configuration is created via XenAPI. Alternatively the values could be casted to appropriate type when used but seems prudent to do the conversion when domU configuration is created. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.