From 77616b22b339204868c2fbd651cd7f254014d8b9 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 18 Jul 2019 04:07:15 +0200 Subject: [PATCH] alpine: Use absolute paths for network configuration templates --- plugins/guests/alpine/cap/configure_networks.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/guests/alpine/cap/configure_networks.rb b/plugins/guests/alpine/cap/configure_networks.rb index 2ac190a68..361e64610 100644 --- a/plugins/guests/alpine/cap/configure_networks.rb +++ b/plugins/guests/alpine/cap/configure_networks.rb @@ -13,9 +13,6 @@ module VagrantPlugins module GuestAlpine module Cap class ConfigureNetworks - def self.source_root - @source_root ||= Pathname.new(File.expand_path('../../../../', __FILE__)) - end include Vagrant::Util def self.configure_networks(machine, networks) machine.communicate.tap do |comm| @@ -31,7 +28,7 @@ module VagrantPlugins entries = [] networks.each do |network| interfaces.add(network[:interface]) - entry = TemplateRenderer.render("guests/alpine/network_#{network[:type]}", { options: network, template_root: source_root.join('templates') }) + entry = TemplateRenderer.render("guests/alpine/network_#{network[:type]}", { options: network }) entries << entry end