Accept the 'datastore' variant of disk source specification used by our
VMware driver.
https://libvirt.org/drvesx.html#datastore
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pino Toscano <ptoscano@redhat.com>
</data>
</define>
+ <define name="vmwarePath">
+ <data type="string">
+ <param name="pattern">\[[^\]]+\] .+</param>
+ </data>
+ </define>
+
<define name="absDirPath">
<data type="string">
<param name="pattern">/.*</param>
<interleave>
<optional>
<attribute name="file">
- <ref name="absFilePath"/>
+ <choice>
+ <ref name="absFilePath"/>
+ <ref name="vmwarePath"/>
+ </choice>
</attribute>
</optional>
<ref name="diskSourceCommon"/>