From: Wolfgang Bumiller Date: Thu, 15 Oct 2015 10:35:18 +0000 (+0200) Subject: support aliases in property strings X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=303a9b34ea148644e2393a11452271b4c708a7c5;hp=303a9b34ea148644e2393a11452271b4c708a7c5 support aliases in property strings In qemu the 'volume' key maps to 'file', both can be used, so to support this case in the comma-separated property list parser we need a way to alias keys to one another. This allows declaring a key like: volume => { alias => 'file' } file => { type => 'string', format => 'pve-volume-id', default_key => 1, format_description => 'volume' } With this the following property strings are equivalent and result in the same datastructure being returned from parse_property_string: local:disk.raw file=local:disk.raw volume=local:disk.raw ---