Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def init(self, conf, force_deploy=False):
LOGGER.info("Vagrant provider")
enoslib_conf = _build_enoslib_conf(conf)
_conf = Configuration.from_dictionnary(enoslib_conf)
vagrant = enoslib_vagrant.Enos_vagrant(_conf)
roles, networks = vagrant.init(force_deploy)
return roles, networks
def destroy(self, env):
LOGGER.info("Destroying vagrant deployment")
enoslib_conf = _build_enoslib_conf(env['config'])
vagrant = enoslib_vagrant.Enos_vagrant(enoslib_conf)
vagrant.destroy()