Split system_identity controller from subiquity one

There is little inherited from it, let’s split them.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
Jean-Baptiste Lallement 2021-09-03 09:52:23 +02:00
parent 039201949d
commit 46eb52c9cb
1 changed files with 7 additions and 2 deletions

View File

@ -15,14 +15,16 @@
import logging
from subiquity.client.controllers import IdentityController
from subiquity.client.controller import SubiquityTuiController
from subiquity.common.types import IdentityData
from system_setup.ui.views import WSLIdentityView
log = logging.getLogger('system_setup.client.controllers.identity')
class WSLIdentityController(IdentityController):
class WSLIdentityController(SubiquityTuiController):
endpoint_name = 'identity'
async def make_ui(self):
data = await self.endpoint.GET()
@ -37,6 +39,9 @@ class WSLIdentityController(IdentityController):
crypted_password=self.answers['password'])
self.done(identity)
def cancel(self):
self.app.prev_screen()
def done(self, identity_data):
log.debug(
"IdentityController.done next_screen user_spec=%s",