summaryrefslogtreecommitdiff
path: root/cloudinit/distros/freebsd.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-01-24 17:39:51 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-01-24 17:39:51 -0800
commit15ebe2a01c0bcdaae43054e0e3559871a99f72aa (patch)
treebbbf385ce7c2951a9e8bffe8b69b788832648d4e /cloudinit/distros/freebsd.py
parent8c7aecbb695f50514ae1bea9c105176b6345fb95 (diff)
downloadvyos-cloud-init-15ebe2a01c0bcdaae43054e0e3559871a99f72aa.tar.gz
vyos-cloud-init-15ebe2a01c0bcdaae43054e0e3559871a99f72aa.zip
Don't try to create members if group creation fails
Diffstat (limited to 'cloudinit/distros/freebsd.py')
-rw-r--r--cloudinit/distros/freebsd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py
index 0f1656c3..afb502c9 100644
--- a/cloudinit/distros/freebsd.py
+++ b/cloudinit/distros/freebsd.py
@@ -108,8 +108,9 @@ class Distro(distros.Distro):
try:
util.subp(group_add_cmd)
LOG.info("Created new group %s", name)
- except Exception:
+ except Exception as e:
util.logexc(LOG, "Failed to create group %s", name)
+ raise e
if len(members) > 0:
for member in members: