lp:~oddbloke/cloud-init/fix-dmi
- Get this branch:
- bzr branch lp:~oddbloke/cloud-init/fix-dmi
Branch merges
- cloud-init Commiters: Pending requested
-
Diff: 228 lines (+103/-62)2 files modifiedcloudinit/util.py (+51/-19)
tests/unittests/test_util.py (+52/-43)
Branch information
Recent revisions
- 1072. By Dan Watkins
-
Convert dmidecode values to sysfs names before looking for them.
dmidecode and /sys/class/dmi/id/* use different names for the same
information. This modified the logic in util.read_dmi_data to map from
dmidecode names to sysfs names before looking in sysfs. - 1069. By Scott Moser
-
url_helper.py: fix undefined variable
python2 scoping is different and running wait_for_url in python3
results in a use of undeclared variable 'e'.$ python3 -c 'from cloudinit import url_helper; \
url_helper. wait_for_ url("o" , max_wait= 3,timeout= 1, exception_ cb=print) '
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "cloudinit/url_helper. py", line 358, in wait_for_url
exception_cb(msg= status_ msg, exception=e) - 1067. By Scott Moser
-
readurl, read_file_or_url returns bytes, user must convert as necessary
* explicitly test compressed user-data.
* userdata_raw is now bytes
* add load_tfile_or_url for loading text file or url
* ec2_utils: all meta-data is text, remove non-obvious string translations
* DigitalOcean: adjust for ec2_utils
* DataSourceGCE, DataSourceMAAS: user-data is binary other fields are text.
* openstack.py: read paths without decoding to text. This is ok as paths
other than user-data are json, and load_json will handle
* load_file still returns text, and that is what most things use. - 1065. By Scott Moser
-
move recently added test_udprocess tests to test_data, improve a bit
explicitly test compressed user-data.
- 1064. By Scott Moser
-
Azure: Fix consumption of user-data
This was previously broken in python3 as the userdata would be bytes
rather than a string.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~cloud-init-dev/cloud-init/trunk