Merge pull request #756 from mwhudson/autoinstall-mirror-geoip-disable

allow autoinstalls to disable geoip
This commit is contained in:
Michael Hudson-Doyle 2020-05-06 19:35:06 +12:00 committed by GitHub
commit 3ca6eee7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: