summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceConfigDrive.py
Commit message (Collapse)AuthorAgeFilesLines
...
* use only util methods for reading/loading/appending/peekingScott Moser2012-10-231-11/+9
|\ | | | | | | | | | | | | | | Use only util methods for reading/loading/appending/peeking at files since it is likely soon that we will add a new way of adjusting the root of files read, also it is useful for debugging to track what is being read/written in a central fashion.
| * Use only util methods for reading/loading/appending/peekingJoshua Harlow2012-09-201-11/+9
| | | | | | | | | | | | | | at files since it is likely soon that we will add a new way of adjusting the root of files read, also it is useful for debugging to track what is being read/written in a central fashion.
* | Add checks around the device names that are foundJoshua Harlow2012-10-051-12/+24
| | | | | | | | | | | | to ensure that even if they are found that they are also valid, before they are assumed to be the correct device name.
* | Add tests to show that the assigned bug is fixed.Joshua Harlow2012-10-051-1/+1
| | | | | | | | | | | | Also fix the extraction of the metadata key name since it actually uses 'dashes' instead of being a single word.
* | Ensure that config drive datasource attempts toJoshua Harlow2012-10-051-0/+58
| | | | | | | | | | | | translate the device name to a actual device using logic that will try the ec2 metadata (if avail) or will try using 'blkid' to find a corresponding label.
* | Ensure that for config drive thatJoshua Harlow2012-10-041-0/+10
|/ | | | | | we map 'hostname' to 'local-hostname' so that the modules work correctly with the cfgdrive style of data.
* use openstack metadata version 2012-08-10 unless not availableScott Moser2012-08-241-1/+8
| | | | | If 'latest' is found, but '2012-08-10' is not, we will log a warning but attempt to use it.
* use instance-id, not previous-instance-id.Scott Moser2012-08-241-2/+4
| | | | | | at the point where we are getting the previous instance id, there cloud-init hasn't performed the move yet. Therefore, the "previous" is the one that /var/lib/cloud/data/ says is the current.
* use 'uuid' as 'instance-id'Scott Moser2012-08-241-0/+7
| | | | | openstack metadata uses 'uuid' as an instances 'instance-id'. just copy that to the metadata['instance-id']
* committing in preparation for actual testScott Moser2012-08-241-74/+158
|
* some more tests.Scott Moser2012-08-231-1/+1
|
* fix pep8 and pylintScott Moser2012-08-231-7/+9
|
* initial functional unit testScott Moser2012-08-231-10/+92
|
* fix pep8 complaints.Scott Moser2012-08-221-7/+7
| | | | make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
* 1. Move all info() logging methods to debug() harlowja2012-06-211-4/+2
| | | | | 2. Adjust comment on sources list from depends 3. For the /etc/timezone 'writing', add a header that says created by cloud-init
* Massive pylint + pep8 fixups!Joshua Harlow2012-06-201-1/+1
|
* Fixed the constructor paramsJoshua Harlow2012-06-181-2/+2
|
* Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow2012-06-151-2/+2
|
* Update applying network esttings to use the distro function to handle this, ↵Joshua Harlow2012-06-151-15/+12
| | | | use logexc instead of log.exception
* Fix this up to work with new utils/logging/datasource...Joshua Harlow2012-06-111-109/+109
|
* Darn it. Those shouldn't be there!Joshua Harlow2012-06-071-0/+231