~oddbloke/cloud-init/lp1375252

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_apt_configure.py

  • Committer: Scott Moser
  • Date: 2015-03-04 22:00:16 UTC
  • mfrom: (1072.1.6 trunk.snappy-include)
  • Revision ID: smoser@ubuntu.com-20150304220016-nhhen154xt7deob0
pull in 'snappy' support

This allows config to disable some of the config modules that were
failing and logging WARN on snapy.  Also adds the snappy module
and changes the syslog perms to take a list of user:groups rather
than just a single.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
 
53
53
def handle(name, cfg, cloud, log, _args):
 
54
    if util.is_false(cfg.get('apt_configure_enabled', True)):
 
55
        log.debug("Skipping module named %s, disabled by config.", name)
 
56
        return
 
57
 
54
58
    release = get_release()
55
59
    mirrors = find_apt_mirror_info(cloud, cfg)
56
60
    if not mirrors or "primary" not in mirrors: