summaryrefslogtreecommitdiff
path: root/cloudinit/handlers
AgeCommit message (Collapse)Author
2012-11-20Start allowing different merging types to be appliedJoshua Harlow
After user data handling splits apart all the different content types into there various mime messages it is nice to be able to have each message specify how it should be merged (mainly for cloud-config or cloud-archive) into the single cloud config that is eventually used. This starts to add a plugable merging framework and the needed components to activate said headers and merging.
2012-11-06Do the append after escape.Joshua Harlow
2012-11-06Use a method instead + at leastJoshua Harlow
attempt the unicode-escape path.
2012-11-06Fix the case where a unknown type is seen andJoshua Harlow
it has contents which are in unicode which seems to cause python to blow-up when this happens since 'string-escape' doesn't work on unicode (at least in 2.6). LP: #1075756
2012-08-22fix pep8 complaints.Scott Moser
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
2012-07-12walker_callback: fix traceback on empty payload.Scott Moser
A previous commit of mine here tried to apply a trivial fix to avoid a warning on empty content type. Instead, it made the empty content type call a handler which did not exist. This instead logs warning on unknown non-empty payload. It logs debug on empty payload.
2012-06-29Ensure that only when incoming frequency is per-instance that this runs.Joshua Harlow
2012-06-29[merge-from-trunk] remove warning message to console on empty user-dataScott Moser
2012-06-211. Only register and increment the handler count after we have ensured it ↵Joshua Harlow
imports and call_begin passes. 2. Fixup the 'test__init__.py' file to now be working again.
2012-06-21Remove a unused import.Joshua Harlow
2012-06-201. Add an importer function that will search for a given module in a set of ↵Joshua Harlow
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.
2012-06-20Massive pylint + pep8 fixups!Joshua Harlow
2012-06-17Log handler + info that is about to be calledJoshua Harlow
2012-06-161. Allow for checking against lower case include types.Joshua Harlow
2. Perform lstrip on the payload, just incase people put spaces/whitespace before the type.
2012-06-16Update error messaging for when importing/registring a part-handler failsJoshua Harlow
2012-06-161. Ensure a that when a bad version is found, that it gets set to 1.Joshua Harlow
2. Increment part handler count even if it doesn't get registered (this shouldn't cause any problems)
2012-06-16Check instance id against none, and not just empty/false/0/none since 0 or ↵Joshua Harlow
empty might be valid
2012-06-16Pass in the datasource as a option, instead of the lower level instance id.Joshua Harlow
This allows for others to use datasource functions if they desire to instead of being restricted. +1 for future use ;)
2012-06-16When a handler version is set but to an unknown non-int convertable value, ↵Joshua Harlow
treat it as 1
2012-06-16They are handlers not mods ;)Joshua Harlow
2012-06-16Make the top level __init__ similar to the other top level __inits__ where ↵Joshua Harlow
just util functions and base classes are defined there.
2012-06-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Ensure that this directory is treated as a module.Joshua Harlow
2012-06-15Moved the user_data directory back to a user_data.py and made a handler ↵Joshua Harlow
subdir for just the internal handlers.
2012-06-15Moved the handlers from a user_data directory to a handler directory.Joshua Harlow
2012-06-11Removing distro specifics from here, as well as running functionality (which ↵Joshua Harlow
is now elsewhere).
2012-06-08Move how handler module names are found to here as well as a fixup module ↵Joshua Harlow
function for bad modules.
2012-06-08Remove cloud config from here and move to cloud.pyJoshua Harlow
2012-06-07Darn it. Those shouldn't be there!Joshua Harlow
2012-06-071. Adding some new helper files that split off file inclusion, templating, ↵Joshua Harlow
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.