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:
parent
039201949d
commit
46eb52c9cb
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue