summaryrefslogtreecommitdiff
path: root/cloudinit/distros/ubuntu.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/distros/ubuntu.py')
-rw-r--r--cloudinit/distros/ubuntu.py21
1 files changed, 2 insertions, 19 deletions
diff --git a/cloudinit/distros/ubuntu.py b/cloudinit/distros/ubuntu.py
index 4b3f8572..5444cbc0 100644
--- a/cloudinit/distros/ubuntu.py
+++ b/cloudinit/distros/ubuntu.py
@@ -23,7 +23,6 @@
from cloudinit.distros import debian
from cloudinit import log as logging
-from cloudinit import util
LOG = logging.getLogger(__name__)
@@ -32,21 +31,5 @@ class Distro(debian.Distro):
distro_name = 'ubuntu'
default_user = 'ubuntu'
-
- def create_user(self, name, **kargs):
-
- if not super(Distro, self).create_user(name, **kargs):
- return False
-
- if 'sshimportid' in kargs:
- cmd = ["sudo", "-Hu", name, "ssh-import-id"] + kargs['sshimportid']
- LOG.debug("Importing ssh ids for user %s, post user creation."
- % name)
-
- try:
- util.subp(cmd, capture=True)
- except util.ProcessExecutionError as e:
- util.logexc(LOG, "Failed to import %s ssh ids", name)
- raise e
-
- return True
+ default_user_groups = ("adm,admin,audio,cdrom,dialout,floppy,video,"
+ "plugdev,dip,netdev,sudo")