summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_ssh.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-08-31 15:40:29 -0400
committerScott Moser <smoser@ubuntu.com>2012-08-31 15:40:29 -0400
commitc6e4c646287e26d15b8d2402527e1f77e21113cd (patch)
tree3d286e2598d6dc64f5c7fcdfac4b5185e7313652 /cloudinit/config/cc_ssh.py
parent53f276c22ef57f49bfae5c6ddc233043d0ef51ad (diff)
parenta90e2802b16b0af7b9cef718d19605e2a0565a8e (diff)
downloadvyos-cloud-init-c6e4c646287e26d15b8d2402527e1f77e21113cd.tar.gz
vyos-cloud-init-c6e4c646287e26d15b8d2402527e1f77e21113cd.zip
usergroup related fixes
- Converted user list to user dict to allow exclusion of the default user on Ubuntu systems via cloud-config (LP: #1041384). - Fixed bug with user creation on Ubuntu where the default user groups are not set properly (LP: #1044044). - Fixed documentation for user creation (LP: #1044508). LP: #1041384, #1044044, #1044508
Diffstat (limited to 'cloudinit/config/cc_ssh.py')
-rw-r--r--cloudinit/config/cc_ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_ssh.py b/cloudinit/config/cc_ssh.py
index 439c8eb8..0ded62ba 100644
--- a/cloudinit/config/cc_ssh.py
+++ b/cloudinit/config/cc_ssh.py
@@ -107,7 +107,7 @@ def handle(_name, cfg, cloud, log, _args):
user = cloud.distro.get_default_user()
if 'users' in cfg:
- user_zero = cfg['users'].keys()[0]
+ user_zero = cfg['users'][0]
if user_zero != "default":
user = user_zero