allow autoinstalls to disable geoip

I initialized things in the wrong order
This commit is contained in:
Michael Hudson-Doyle 2020-05-06 17:36:56 +12:00
parent 10035ab28f
commit cb3a321128
1 changed files with 1 additions and 1 deletions

View File

@ -59,13 +59,13 @@ class MirrorController(SubiquityController):
def __init__(self, app):
self.ai_data = {}
self.geoip_enabled = True
super().__init__(app)
self.check_state = CheckState.NOT_STARTED
if 'country-code' in self.answers:
self.check_state = CheckState.DONE
self.model.set_country(self.answers['country-code'])
self.lookup_task = SingleInstanceTask(self.lookup)
self.geoip_enabled = True
def load_autoinstall_data(self, data):
if data is None: