diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-24 17:39:51 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-24 17:39:51 -0800 |
commit | 15ebe2a01c0bcdaae43054e0e3559871a99f72aa (patch) | |
tree | bbbf385ce7c2951a9e8bffe8b69b788832648d4e /cloudinit/distros | |
parent | 8c7aecbb695f50514ae1bea9c105176b6345fb95 (diff) | |
download | vyos-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')
-rw-r--r-- | cloudinit/distros/freebsd.py | 3 |
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: |