~killermoehre/cloud-init:migrate-lp-to-github

Last commit made on 2020-03-26
Get this branch:
git clone -b migrate-lp-to-github https://git.launchpad.net/~killermoehre/cloud-init
Only Silvio Knizek can upload to this branch. If you are Silvio Knizek please log in for upload directions.

Branch merges

Branch information

Name:
migrate-lp-to-github
Repository:
lp:~killermoehre/cloud-init

Recent commits

92383bd... by Silvio Knizek

lp-to-git-users: adding killermoehre

Mapped from killermoehre

993f3e3... by Gonéri Le Bouder

set_passwords: avoid chpasswd on BSD (#268)

Avoid chpasswd on all the BSD variants.

42f69f4... by Dan Watkins

HACKING.rst: add Unit Testing design section (#277)

3f6746c... by Ryan Harper

util: read_cc_from_cmdline handle urlencoded yaml content (#275)

Add support for additional escaping of formatting characters
in the YAML content between the 'cc:' and 'end_cc' tokens. On
s390x legacy terminals the use of square brackets [] are not
available limiting the ability to indicate lists of values in
yaml content. Using #5B and #5D, [ and ] respectively enables
s390x users to pass list yaml content into cloud-init via
command line interface.

c5e949c... by Dan Watkins

distros/tests/test_init: add tests for _get_package_mirror_info (#272)

d605db4... by Dan Watkins

HACKING.rst: add links to new Code Review Process doc (#276)

Co-authored-by: Joshua Powers <email address hidden>

53b6d1d... by Gonéri Le Bouder

freebsd: ensure package update works (#273)

Currently, `cc_package_update_upgrade_install.py` fails because
`package_command()` does not know how to do an update on FreeBSD.

```
2020-03-23 20:01:53,995 - util.py[DEBUG]: Package update failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/config/cc_package_update_upgrade_install.py", line 85, in handle
    cloud.distro.update_package_sources()
  File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/distros/freebsd.py", line 158, in update_package_sources
    ["update"], freq=PER_INSTANCE)
  File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/helpers.py", line 185, in run
    results = functor(*args)
  File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/distros/bsd.py", line 102, in package_command
    cmd.extend(pkglist)
UnboundLocalError: local variable 'cmd' referenced before assignment
```

This commit defines a new `pkg_cmd_update_prefix` key. If it's empty, we
don't do any update, otherwise we use the value to update the package
manager.

0151e7e... by Dan Watkins

doc: introduce Code Review Process documentation (#160)

9bb1ae9... by Ryan Harper

tools: use python3 (#274)

* tools: use python3

Switch tools/ to use python3 instead of python. At minimum this
fixes building deb on python3 only releases like Focal. Applied
via shell commands:

 $ grep 'usr/bin/.*python' tools/* 2>/dev/null | \
     grep -v python3 | awk -F':' '{print $1}' | \
     xargs -i sed -i -e '0,/python/s/python/python3/' {}

* Use /usr/bin/env python3 to be virtualenv friendly

04771d7... by Dan Watkins

cc_disk_setup: fix RuntimeError (#270)

Addresses "Runtime Error: dictionary keys changed during iteration".

Co-authored-by: Noah Meyerhans <email address hidden>

LP: #1868327