Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-02 | DataSourceMAAS: fix oauthlib imports | Scott Moser | |
In both python2 and python3, This throws "'module' object has no attribute 'oauth1'" $ python3 -c 'import oauthlib; oauthlib.oauth1.Client("x")' While this works fine: $ python3 -c 'import oauthlib.oauth1 as oauth1; oauth1.Client("x")' | |||
2015-03-02 | get_cmdline_url: fix in python3 when calling | Scott Moser | |
get_cmdline_url was passing a string to response.contents.startswith() where response.contents is now bytes. this changes it to convert input to text, and also to default to text. | |||
2015-03-02 | util.py: remove 'print' debug statement | Scott Moser | |
2015-03-02 | url_helper.py: fix undefined variable | Scott Moser | |
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) | |||
2015-03-02 | pep8 | Scott Moser | |
2015-02-26 | avoid conversion to string in #include | Scott Moser | |
2015-02-25 | UserDataProcessor: during include, do not convert to string | Scott Moser | |
an include can include a gzip type also or binary data so avoid conversion here. | |||
2015-02-25 | move towards user-data being binary | Scott Moser | |
UrlResponse: biggest change... make readurl return bytes, making user know what to do with it. util: add load_tfile_or_url for loading text file or url as read_file_or_url now returns bytes 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. | |||
2015-02-24 | further fixing of non-text user-data. | Scott Moser | |
2015-02-24 | Azure: Fix consumption of user-data | Scott Moser | |
This was previously broken in python3 as the userdata would be bytes rather than a string. LP: #1423972 | |||
2015-02-24 | use util.decode_binary rather than str, add tests. | Scott Moser | |
just seems to make more sense to decode here. Add a test showing the previous failure (testBytesInPayload) And one that should pass (testStringInPayload) Also, add a test for unencoded content in the ovf xml (test_userdata_plain) And explicitly set encoding on another test (test_userdata_found). | |||
2015-02-24 | CloudStack: support fetching password from virtual router | Scott Moser | |
LP: #1422388 | |||
2015-02-24 | merge from trunk | Scott Moser | |
2015-02-23 | Make parameter list for get_hostname method consistent | Joshua Harlow | |
2015-02-23 | Add documentation about upstream CloudStack HTTP fix. | Daniel Watkins | |
2015-02-23 | Always close the password server connection, even on failure. | Daniel Watkins | |
2015-02-20 | Fix for Py2 to Py3 difference: cloud-init user-data mime conversion fails on | Ben Howard | |
base64 encoded data. | |||
2015-02-20 | Split CloudStack password handling out to separate class. | Daniel Watkins | |
2015-02-20 | Minor formatting clean-up in CloudStack DS. | Daniel Watkins | |
2015-02-18 | Set an explicit timeout when fetching CloudStack passwords. | Daniel Watkins | |
2015-02-18 | Failing to fetch a CloudStack password should never fail the whole DS. | Daniel Watkins | |
There might be some CloudStack deployments without the :8080 password server, and there's no reason the rest of the data source can't be used for them. | |||
2015-02-18 | Read ovf-env.xml as bytes. | Daniel Watkins | |
This should fix the Azure data source on Python 3, and is appropriate as XML shouldn't really be read as a string. | |||
2015-02-17 | Add explanatory comment. | Daniel Watkins | |
2015-02-17 | Fetch and use passwords from CloudStack virtual router. | Daniel Watkins | |
2015-02-17 | Clean up imports in DataSourceCloudStack.py. | Daniel Watkins | |
2015-02-13 | fix usage of python2 'print' | Scott Moser | |
2015-02-13 | support for managing GPT partitions | Scott Moser | |
Specifically, this is to support Azure's G-series VMs (which come with disks up to 6500GB). | |||
2015-02-12 | mount_cb: fix scoping of an exception in python3 | Scott Moser | |
2015-02-11 | include exception in error again. | Scott Moser | |
it is admittedly not clear, but 'exc' should be definied if mountpoint is not. | |||
2015-02-11 | pickle contents: be careful loading and storing pickle to be binary | Scott Moser | |
2015-02-11 | provide default final message in jinja to avoid WARN in log | Scott Moser | |
2015-02-11 | Open /dev/console in text mode (so we don't have to encode strings to write ↵ | Daniel Watkins | |
them). | |||
2015-02-11 | Fix reference to non-existent variable. | Daniel Watkins | |
2015-02-10 | pep8 | Scott Moser | |
2015-02-10 | pep8 | Scott Moser | |
2015-02-11 | fix random_seed module | Scott Moser | |
2015-02-10 | use encode_text | Scott Moser | |
2015-02-10 | fix parse_qs usage | Scott Moser | |
2015-02-10 | fix use of 'letters' and translate | Scott Moser | |
2015-01-27 | Remove debugging turd. | Barry Warsaw | |
2015-01-27 | Respond to review: | Barry Warsaw | |
- Refactor "fully" decoding the payload of a text/* part. In Python 3, decode=True only means to decode according to Content-Transfer-Encoding, not according to any charset in the Content-Type header. So do that. | |||
2015-01-27 | Respond to review: | Barry Warsaw | |
- Refactor both the base64 encoding and decoding into utility functions. Also: - Mechanically fix some other broken untested code. | |||
2015-01-27 | Respond to review: | Barry Warsaw | |
- Just use util.load_file() instead of yet another way to open and read the file. | |||
2015-01-27 | Remove a comment turd. | Barry Warsaw | |
2015-01-27 | Remove some unused code. | Barry Warsaw | |
2015-01-27 | Respond to review: | Barry Warsaw | |
- Remove str() wrappers to second argument to write_files() where it is no longer necessary. Also: Fixed a couple of other octal literals which clearly weren't being tested. | |||
2015-01-26 | Repair the Python 2.6 tests. | Barry Warsaw | |
2015-01-26 | Trunk merged and ported. | Barry Warsaw | |
2015-01-26 | Port the MAAS code to oauthlib. | Barry Warsaw | |
2015-01-26 | Python 3 tests pass, except for skips. | Barry Warsaw | |