Say you have found a bug in a library which MAAS uses for deploying servers, have already fixed the bug and put in a merge request, however you need that change in your MAAS environment now. In my case it was a bug in curtin which was causing half of my machines to not deploy. The good news is that you can modify the curtin code directly on your MAAS node, working around the issue until your merge request is accepted. In my case the library was located on the MAAS node at

/usr/lib/python2.7/dist-packages/curtin

However if you are dealing with a different package then the dist-package directly will most likely contain it. The mainline code for curtin is located here, so any changes you need can easily be copy and pasted into the curtin code directly at the path listed above and it will then be copied to the remoteĀ machines and used for orchestrating deployment.