mirror: s/is_default/mirror_is_default

Clarify that the mirror is the default, as there are other things under
mirror that are not relevant to this determination.
This commit is contained in:
Dan Bungert 2021-08-04 14:28:34 -06:00
parent 200ceb1d58
commit e1e5013ad5
2 changed files with 3 additions and 3 deletions

View File

@ -52,11 +52,11 @@ class MirrorModel(object):
self.architecture = get_architecture() self.architecture = get_architecture()
self.default_mirror = self.get_mirror() self.default_mirror = self.get_mirror()
def is_default(self): def mirror_is_default(self):
return self.get_mirror() == self.default_mirror return self.get_mirror() == self.default_mirror
def set_country(self, cc): def set_country(self, cc):
if not self.is_default(): if not self.mirror_is_default():
return return
uri = self.get_mirror() uri = self.get_mirror()
parsed = parse.urlparse(uri) parsed = parse.urlparse(uri)

View File

@ -55,7 +55,7 @@ class MirrorController(SubiquityController):
return return
geoip = data.pop('geoip', True) geoip = data.pop('geoip', True)
merge_config(self.model.config, data) merge_config(self.model.config, data)
self.geoip_enabled = geoip and self.model.is_default() self.geoip_enabled = geoip and self.model.mirror_is_default()
@with_context() @with_context()
async def apply_autoinstall_config(self, context): async def apply_autoinstall_config(self, context):