> > If a migrations runs and we are in a position to run that code > > (i.e. more than one user, no 'provider-state' file), if it happens > > that there is a *real* user with that username, it won't do the > > right thing. I reckon this is pretty improbable but maybe we should > > at least raise and exception in that case. What do you think? > > I want the code to be safe to run multiple times, so I think it's > important to be able to pick up an existing legacy user. However, I'll > make the legacy user similar to the other system users, in that it > won't have a UserProfile. Then I can check that here and raise an > exception if it appears to be a regular user with the same name. > > Sound okay?
Sounds good to me. Thanks! -- https://code.launchpad.net/~allenap/maas/shared-to-per-tenant-storage/+merge/151858 Your team Launchpad code reviewers is requested to review the proposed merge of lp:~allenap/maas/shared-to-per-tenant-storage into lp:maas. _______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

