do not require identity data when reset_partition_only
This commit is contained in:
parent
e84b3dda8f
commit
d824742aff
|
@ -1,9 +1,4 @@
|
||||||
version: 1
|
version: 1
|
||||||
identity:
|
|
||||||
realname: ''
|
|
||||||
username: ubuntu
|
|
||||||
password: '$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1'
|
|
||||||
hostname: ubuntu
|
|
||||||
storage:
|
storage:
|
||||||
layout:
|
layout:
|
||||||
name: direct
|
name: direct
|
||||||
|
|
|
@ -85,8 +85,12 @@ class IdentityController(SubiquityController):
|
||||||
|
|
||||||
@with_context()
|
@with_context()
|
||||||
async def apply_autoinstall_config(self, context=None):
|
async def apply_autoinstall_config(self, context=None):
|
||||||
if not self.model.user:
|
if self.model.user:
|
||||||
if 'user-data' not in self.app.autoinstall_config:
|
return
|
||||||
|
if 'user-data' in self.app.autoinstall_config:
|
||||||
|
return
|
||||||
|
if self.app.base_model.target is None:
|
||||||
|
return
|
||||||
raise Exception("no identity data provided")
|
raise Exception("no identity data provided")
|
||||||
|
|
||||||
def make_autoinstall(self):
|
def make_autoinstall(self):
|
||||||
|
|
Loading…
Reference in New Issue