Diff comments: > diff --git a/curtin/commands/install.py b/curtin/commands/install.py > index 7d108d1..b029377 100644 > --- a/curtin/commands/install.py > +++ b/curtin/commands/install.py > @@ -162,6 +214,11 @@ class WorkingDir(object): > 'TARGET_MOUNT_POINT': self.target, > 'CONFIG': self.config_file}) > > + def export(self, path): > + """ Export all attributes so that they can be loaded again later. """ > + with open(path, mode="w") as fh: > + json.dump(self.__dict__, fh) My understanding of the versions of Python (and other deps) that we support in curtin is very unclear so I kept it to the bare minimum. But yes, `attr.asdict` should be cleaner :) > + > > class Stage(object): > -- https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/427671 Your team curtin developers is subscribed to branch curtin:master. -- Mailing list: https://launchpad.net/~curtin-dev Post to : curtin-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~curtin-dev More help : https://help.launchpad.net/ListHelp
- [Curtin-dev] [Merge] ~ogayot/curtin:install-step-by-s... Olivier Gayot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Server Team CI bot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Server Team CI bot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Dan Bungert
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Olivier Gayot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Dan Bungert
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Michael Hudson-Doyle
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Olivier Gayot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Server Team CI bot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Olivier Gayot
- [Curtin-dev] [Merge] ~ogayot/curtin:install-step... Olivier Gayot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Olivier Gayot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Server Team CI bot
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Dan Bungert
- Re: [Curtin-dev] [Merge] ~ogayot/curtin:install-... Michael Hudson-Doyle
- [Curtin-dev] [Merge] ~ogayot/curtin:install-step... Michael Hudson-Doyle
- [Curtin-dev] [Merge] ~ogayot/curtin:install-step... Server Team CI bot