diff --git a/docs/installation/config_cli.rst b/docs/installation/config_cli.rst index a16e69b9..8cf749c1 100644 --- a/docs/installation/config_cli.rst +++ b/docs/installation/config_cli.rst @@ -39,8 +39,8 @@ Create or update a (single) YAML configuration file with your settings: .. code-block:: yaml ... - objects_api_sites_config_enable: true - objects_api_sites_config: + sites_config_enable: true + 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 1188226d..e92c5627 100644 --- a/src/objects/setup_configuration/steps/sites.py +++ b/src/objects/setup_configuration/steps/sites.py @@ -12,8 +12,8 @@ class SitesConfigurationStep(BaseConfigurationStep): config_model = SitesConfigurationModel verbose_name = "Sites configuration" - namespace = "objects_api_sites_config" - enable_setting = "objects_api_config_enable" + namespace = "sites_config" + enable_setting = "sites_config_enable" def execute(self, model: SitesConfigurationModel) -> None: for item in model.items: 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 66a9b6c6..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 @@ -objects_api_sites_config_enable: true -objects_api_sites_config: +sites_config_enable: true +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 605ea0d3..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 @@ -objects_api_sites_config_enable: true -objects_api_sites_config: +sites_config_enable: true +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 66a9b6c6..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 @@ -objects_api_sites_config_enable: true -objects_api_sites_config: +sites_config_enable: true +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 48db8bf7..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 @@ -objects_api_sites_config_enable: true -objects_api_sites_config: +sites_config_enable: true +sites_config: items: - domain: example.com name: Example site