Comment 23 for bug 1331214

Revision history for this message
Raphaƫl Badin (rvb) wrote :

Note that we still want to port all the Bash templates to Python. If you're thinking about changing an existing Bash power driver, please see if porting it to Python is possible. It might sound like a lot of work but I believe it might not be as bad as it sounds; especially if the change you're planning to make requires doing things that are cumbersome to express and test in Bash.
Please see the virsh driver for an example of this (the core functionality is Python but it's still called from a Bash template, ./src/provisioningserver/drivers/hardware/virsh.py,. /src/provisioningserver/drivers/hardware/tests/test_virsh.py, ./etc/maas/templates/power/virsh.template).