[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Re: multiple disk images, how to?



Molle Bestefich wrote:
> ...you would want at least be able to throw a warning when it happens,
> since regular users probably expect standard config-file semantics
> from a config file, not Python semantics.
>   
Extending lists by describing the same item multiple times isn't Python
semantics, and not every config-semantics-compliant parser issues
complaints when redefinitions occur. You're arguing to make things
uglier for users who take advantage of advanced features for the purpose
of implementing a feature which is strictly a nice-to-have to help folks
realize when they've screwed up. Now, if there weren't documentation to
help prevent folks from screwing up, you might almost have a point --
but see below...
> Another approach would be to note in each configuration file that it's
> Python syntax.
>   
It's already documented that it's Python code -- xmexample2's first line
of documentation text describes it as "# Example Python setup script for
'xm create'", while xmexample1 starts with "# Python configuration setup
for 'xm create'". Furthermore, the xmexample* files include examples of
the Pythonic list syntax, so there's a clear reference to use when
defining multiple drives (or whatnot).

xmexample.vmx *also* starts with a disclaimer that it's Python code --
so yes, each and every example configuration file given does indeed
already note that it's Python syntax.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.