Consistent naming - part 2 - longer model name

sticking with "active_directory" for clarity.
This commit is contained in:
Carlos Nihelton 2023-03-02 09:11:41 -03:00
parent 2057dcd64a
commit 7062e6ad3b
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
6 changed files with 6 additions and 6 deletions

View File

@ -461,7 +461,7 @@
"additionalProperties": false
}
},
"ad": {
"active_directory": {
"type": "object",
"properties": {
"admin_name": {

View File

@ -29,7 +29,7 @@ apt:
- {package: "python-*", pin: "origin *ubuntu.com*", pin-priority: -1}
keyboard:
layout: gb
ad:
active_directory:
admin_name: '$ubuntu'
domain_name: 'ad.ubuntu.com'
identity:

View File

@ -180,7 +180,7 @@ class SubiquityModel:
self.target = root
self.chroot_prefix = []
self.ad = AdModel()
self.active_directory = AdModel()
self.codecs = CodecsModel()
self.debconf_selections = DebconfSelectionsModel()
self.drivers = DriversModel()

View File

@ -93,7 +93,7 @@ class AdController(SubiquityController):
""" Implements the server part of the Active Directory feature. """
endpoint = API.active_directory
# No auto install key and schema for now due password handling uncertainty.
autoinstall_key = model_name = "ad"
autoinstall_key = model_name = "active_directory"
autoinstall_schema = {
'type': 'object',
'properties': {

View File

@ -406,7 +406,7 @@ class InstallController(SubiquityController):
policy = self.model.updates.updates
await self.run_unattended_upgrades(context=context, policy=policy)
await self.restore_apt_config(context=context)
if self.model.ad.do_join:
if self.model.active_directory.do_join:
hostname = self.model.identity.hostname
if not hostname:
with open(self.tpath('etc/hostname'), 'r') as f:

View File

@ -215,7 +215,7 @@ POSTINSTALL_MODEL_NAMES = ModelNames({
"ubuntu_pro",
"userdata",
},
desktop={"timezone", "codecs", "ad"})
desktop={"timezone", "codecs", "active_directory"})
class SubiquityServer(Application):