• Bryton Lacquement's avatar
    kvm/test: kvm0 -> KVM0 · 76511465
    Bryton Lacquement authored
    The kvm software release was recently modified to use
    slapos.cookbook:switch-softwaretype instead of the deprecated
    slapos.cookbook:softwaretype.
    
    The latter uses ConfigParser to generate
    buildout-switch_softwaretype.cfg from template-*.cfg. However,
    ConfigParser changes the section keys to lowercase, as shown in the
    following example:
    
    >>> from six.moves.configparser import ConfigParser
    >>> from io import StringIO
    >>> c = ConfigParser()
    >>> c.readfp(StringIO("[FOO]\nBAR = BAZ"))
    >>> s = StringIO()
    >>> c.write(s)
    >>> s.getvalue()
    '[FOO]\nbar = BAZ\n\n'
    
    This behavior is not present with
    slapos.cookbook:switch-softwaretype.
    76511465
test.py 10.7 KB