summaryrefslogtreecommitdiff
path: root/cloudinit/importer.py
Commit message (Collapse)AuthorAgeFilesLines
* Standardize kernel commandline user interface (#2093)Brett Holman2023-03-311-11/+26
| | | | | | - deprecate ci.ds= and ci.datasource= in favor of ds= - enable semi-colon-delimited datasource everywhere - add support for case-insensitive datasource match - add integration tests
* Modernise importer.py and type ModuleDetails (#1605)Alberto Contreras2022-07-221-17/+27
|
* Add json schemas for modules starting with PJames Falcon2022-03-081-19/+0
| | | | | | | Includes: * cc_package_update_upgrade_install * cc_phone_home * cc_power_state_change * cc_puppet
* use PEP 589 syntax for TypeDict (#1253)Brett Holman2022-02-141-14/+12
| | | | | Use PEP 589 syntax for TypeDict annotation. Also fixes previously broken typing MetaSchema typing implementation.
* Adopt Black and isort (SC-700) (#1157)James Falcon2021-12-151-1/+2
| | | | | Applied Black and isort, fixed any linting issues, updated tox.ini and CI.
* Add Strict Metaschema Validation (#1101)Brett Holman2021-12-061-1/+23
| | | | | | | | | | | | | | | | | | Improve schema validation. This adds strict validation of config module definitions at testing time, with plumbing included for future runtime validation. This eliminates a class of bugs resulting from schemas that have definitions that are incorrect, but get interpreted by jsonschema as "additionalProperties" that are therefore ignored. - Add strict meta-schema for jsonschema unit test validation - Separate schema from module metadata structure - Improve type annotations for various functions and data types Cleanup: - Remove unused jsonschema "required" elements - Eliminate manual memoization in schema.py:get_schema(), reference module.__doc__ directly
* LICENSE: Allow dual licensing GPL-3 or Apache 2.0Jon Grimm2016-12-221-19/+9
| | | | | | | | | | | | | | | | | | This has been a recurring ask and we had initially just made the change to the cloud-init 2.0 codebase. As the current thinking is we'll just continue to enhance the current codebase, its desirable to relicense to match what we'd intended as part of the 2.0 plan here. - put a brief description of license in LICENSE file - put full license versions in LICENSE-GPLv3 and LICENSE-Apache2.0 - simplify the per-file header to reference LICENSE - tox: ignore H102 (Apache License Header check) Add license header to files that ship. Reformat headers, make sure everything has vi: at end of file. Non-shipping files do not need the copyright header, but at the moment tests/ have it.
* Remove/adjust the verbose 'failed at attempted import of' logJoshua Harlow2014-09-021-13/+8
| | | | | | | Instead of using this log (which really isn't a failure) we should instead of just return the looked up locations and then if there really is an error the caller can handle the usage of the looked up locations as they choose fit.
* Remove some of the more useless debug logsJoshua Harlow2014-07-151-4/+0
|
* Log message around import failureJoshua Harlow2013-10-091-2/+4
| | | | | | | In certain cases import failure is expected and in certain cases it is not expected, in either case it is useful to at least log the failure.
* 1. Add an importer function that will search for a given module in a set of ↵Joshua Harlow2012-06-201-9/+35
| | | | | | | | search module 'prefixes' that also has a potential set of required attributes. 2. Use this new importer to find the distro class, the userdata handler modules, the config modules and the datasource modules, if none can be found error out accordingly.
* 1. Show what we are importingJoshua Harlow2012-06-201-2/+10
| | | | 2. Don't rethrow as a runtime exception, let people using this just catch the real error...
* Add copyright + index hash directly instead of get.Joshua Harlow2012-06-091-2/+22
|
* 1. Adding some new helper files that split off file inclusion, templating, ↵Joshua Harlow2012-06-071-0/+11
importing, constant usage. 1. Move all datasources to a new sources directory 1. Rename some files to be more consistent with python file/module naming.