← Back to team overview

cloud-init team mailing list archive

Refactoring cloudinit.net (again)


Hi folks,

goneri's Pull Request  to introduce a [FreeBSD renderer](https://github.com/canonical/cloud-init/pull/61) is also a big inspiration.
I'm currently testing this patch, but it seems to be "write-only" so far.

I tried to change that, and ran into something that seemed eerily familiar: this pull request of mine, from a year ago: https://code.launchpad.net/~i.galic/cloud-init/+git/cloud-init/+merge/358228

So, after taking a year break, and having hopefully learned something, I'd like to get back to this.
Running this by the IRC channel, i got some responses.

OddBloke suggested we could prototype an OOP aproach, by rewriting one of the functions for Linux to be loaded from a class.
The more i thought about this, the more the classes seemed like container; and all methods would just be static.
But it does seem like the easiest way to isolate things in python, so why not?

If you have opinions, i invite you to share them here on the list.
If you have design suggestions; perhaps the best place would be this HackMD Note: https://hackmd.io/3-YBj1t9TAeKhmfLBQUjXQ (at least until our design gets… better :)


Follow ups