summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-12-16 13:29:36 -0500
committerScott Moser <smoser@brickies.net>2016-12-19 11:10:50 -0500
commitca3ae67211d907b4cfdcd685c0ae4f9530cb7da1 (patch)
tree0737429aeb0cfb5245070c9b87aa4035546b4372 /doc/examples
parentc9c9197a3210ac24a039a4096214150d0e8cebb8 (diff)
downloadvyos-cloud-init-ca3ae67211d907b4cfdcd685c0ae4f9530cb7da1.tar.gz
vyos-cloud-init-ca3ae67211d907b4cfdcd685c0ae4f9530cb7da1.zip
user-groups: fix bug when groups was provided as string and had spaces
Cloud-config provided like: users: - default - name: foobar groups: sudo, adm Would result in adduser being called as: useradd foobar --groups 'sudo, adm' -m Which would cause error: useradd: group ' adm' does not exist The fix here is just to always normalize groups and remove whitespace. Additionally a fix and unit tests to explicitly set system=False or no_create_home=True. Previously those paths did not test the value of the entry, only the presense of the entry. LP: #1354694
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions