-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: allow CLOUD_INIT_SCHEMA_DIR env override for Paths.schema_dir
To allow for building docs locally in the project-dir, get_schema needs to source ./config/cloud-init-schema*json which is data files outside of the typical python module paths. get_schema will prefer CLOUD_INIT_SCHEMA_DIR environment variable over Paths.schema_dir if provided. Allow tox.ini to passenv CLOUD_INIT_SCHEMA_DIR into the tox env. To generate docs from project directory: CLOUD_INIT_SCHEMA_DIR=config tox -e doc To validate schema docs from project directory: CLOUD_INIT_SCHEMA_DIR=config PYTHONPATH=. python3 \ -m cloudinit.cmd.main devel schema --docs all
- Loading branch information
1 parent
3bf0220
commit 2b43a2e
Showing
4 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters