From 15ebe2a01c0bcdaae43054e0e3559871a99f72aa Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 24 Jan 2014 17:39:51 -0800 Subject: Don't try to create members if group creation fails --- cloudinit/distros/freebsd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit/distros') 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: -- cgit v1.2.3