diff --git a/docs/installation/config_cli.rst b/docs/installation/config_cli.rst index 68cd9dd4..8cf749c1 100644 --- a/docs/installation/config_cli.rst +++ b/docs/installation/config_cli.rst @@ -40,7 +40,7 @@ Create or update a (single) YAML configuration file with your settings: .. code-block:: yaml ... sites_config_enable: true - sites: + sites_config: items: - domain: example.com name: Example site diff --git a/src/objects/setup_configuration/steps/sites.py b/src/objects/setup_configuration/steps/sites.py index 199e38f2..e92c5627 100644 --- a/src/objects/setup_configuration/steps/sites.py +++ b/src/objects/setup_configuration/steps/sites.py @@ -12,7 +12,7 @@ class SitesConfigurationStep(BaseConfigurationStep): config_model = SitesConfigurationModel verbose_name = "Sites configuration" - namespace = "sites" + namespace = "sites_config" enable_setting = "sites_config_enable" def execute(self, model: SitesConfigurationModel) -> None: diff --git a/src/objects/setup_configuration/tests/files/sites_empty_database.yaml b/src/objects/setup_configuration/tests/files/sites_empty_database.yaml index 808bdf57..505a3be3 100644 --- a/src/objects/setup_configuration/tests/files/sites_empty_database.yaml +++ b/src/objects/setup_configuration/tests/files/sites_empty_database.yaml @@ -1,5 +1,5 @@ sites_config_enable: true -sites: +sites_config: items: - domain: example.com name: Example site diff --git a/src/objects/setup_configuration/tests/files/sites_existing_sites.yaml b/src/objects/setup_configuration/tests/files/sites_existing_sites.yaml index d2f00fbb..1a873760 100644 --- a/src/objects/setup_configuration/tests/files/sites_existing_sites.yaml +++ b/src/objects/setup_configuration/tests/files/sites_existing_sites.yaml @@ -1,5 +1,5 @@ sites_config_enable: true -sites: +sites_config: items: - domain: example.com name: Example site (revised) diff --git a/src/objects/setup_configuration/tests/files/sites_idempotent_step.yaml b/src/objects/setup_configuration/tests/files/sites_idempotent_step.yaml index 808bdf57..505a3be3 100644 --- a/src/objects/setup_configuration/tests/files/sites_idempotent_step.yaml +++ b/src/objects/setup_configuration/tests/files/sites_idempotent_step.yaml @@ -1,5 +1,5 @@ sites_config_enable: true -sites: +sites_config: items: - domain: example.com name: Example site diff --git a/src/objects/setup_configuration/tests/files/sites_invalid_domain.yaml b/src/objects/setup_configuration/tests/files/sites_invalid_domain.yaml index e8995718..ac8fa7ca 100644 --- a/src/objects/setup_configuration/tests/files/sites_invalid_domain.yaml +++ b/src/objects/setup_configuration/tests/files/sites_invalid_domain.yaml @@ -1,5 +1,5 @@ sites_config_enable: true -sites: +sites_config: items: - domain: example.com name: Example site