~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_lxd.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
            data = "\n".join(["set %s %s" % (k, v)
112
112
                              for k, v in debconf.items()]) + "\n"
113
113
            util.subp(['debconf-communicate'], data)
114
 
        except:
 
114
        except Exception:
115
115
            util.logexc(log, "Failed to run '%s' for lxd with" % dconf_comm)
116
116
 
117
117
        # Remove the existing configuration file (forces re-generation)