I was trying to test the functions i could in the installtemplate and have come across a bug i can't figure out. The actual error given is: Traceback (most recent call last): File "pctest_GLI.py", line 57, in testTemplates template.setup_network_pre() File "/root/src/installer/installer/src/GLIInstallTemplate.py", line 212, in setup_network_pre self._edit_config("/etc/conf.d/net", "gateway", default_gateway) File "/root/src/installer/installer/src/GLIInstallTemplate.py", line 79, in _edit_config f = open(file_name) TypeError: coercing to Unicode: need string or buffer, instance found the string "/etc/conf.d/net" seems to be appearing as an instance instead of a string. i'm not good enough at python to know what to do. Reproducible: Always Steps to Reproduce: this is reproduced using my own test script and sample profile.
This is a known issue. The core of the problem is that when the XML files are parsed, the string type is incorrect (unicode strings in python are different types than "normal" strings). This type mismatch will manifest all over the place. I haven't had a chance to properly evaluate the situation and decide if we should switch all string types or cast to the appropriate type. This gets into issues of I18N and the like which is important due to the wide range of languages spoken by Gentoo users. I have to get a few things straightened out, but this is relatively simple to fix. Thanks for the catch, though!
esammer found this bug. wasn't passing looking for self first.
Moving to Release Media/Installer.