install_method = hookenv.config()['install_method']
if not hasattr(reactive, '_snap_registered') and not install_method == 'apt':
hookenv.atstart(hookenv.log, 'Initializing Snap Layer')
hookenv.atstart(ensure_snapd)
hookenv.atstart(ensure_path)
hookenv.atstart(update_snap_proxy)
hookenv.atstart(configure_snap_enterprise_proxy)
hookenv.atstart(install)
reactive._snap_registered = True
This layer is a total pain on trusty and especially in trusty containers.
What's worst about is, it fails even though it will not even be used by the charm.
How about
install_method = hookenv. config( )['install_ method' ] atstart( hookenv. log, 'Initializing Snap Layer') atstart( ensure_ snapd) atstart( ensure_ path) atstart( update_ snap_proxy) atstart( configure_ snap_enterprise _proxy) atstart( install) _snap_registere d = True
if not hasattr(reactive, '_snap_registered') and not install_method == 'apt':
hookenv.
hookenv.
hookenv.
hookenv.
hookenv.
hookenv.
reactive.
This layer is a total pain on trusty and especially in trusty containers.
What's worst about is, it fails even though it will not even be used by the charm.