allow autoinstalls to disable geoip
I initialized things in the wrong order
This commit is contained in:
parent
10035ab28f
commit
cb3a321128
|
@ -59,13 +59,13 @@ class MirrorController(SubiquityController):
|
||||||
|
|
||||||
def __init__(self, app):
|
def __init__(self, app):
|
||||||
self.ai_data = {}
|
self.ai_data = {}
|
||||||
|
self.geoip_enabled = True
|
||||||
super().__init__(app)
|
super().__init__(app)
|
||||||
self.check_state = CheckState.NOT_STARTED
|
self.check_state = CheckState.NOT_STARTED
|
||||||
if 'country-code' in self.answers:
|
if 'country-code' in self.answers:
|
||||||
self.check_state = CheckState.DONE
|
self.check_state = CheckState.DONE
|
||||||
self.model.set_country(self.answers['country-code'])
|
self.model.set_country(self.answers['country-code'])
|
||||||
self.lookup_task = SingleInstanceTask(self.lookup)
|
self.lookup_task = SingleInstanceTask(self.lookup)
|
||||||
self.geoip_enabled = True
|
|
||||||
|
|
||||||
def load_autoinstall_data(self, data):
|
def load_autoinstall_data(self, data):
|
||||||
if data is None:
|
if data is None:
|
||||||
|
|
Loading…
Reference in New Issue