From f71b27ff27b3061c3206ce48762ee4a79f56005d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 21 Aug 2015 12:49:36 +0300 Subject: [PATCH] fix network detection on pld-linux pld linux uses redhat as base, but lacks :flavour this will add it --- plugins/guests/pld/cap/flavor.rb | 11 +++++++++++ plugins/guests/pld/plugin.rb | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 plugins/guests/pld/cap/flavor.rb diff --git a/plugins/guests/pld/cap/flavor.rb b/plugins/guests/pld/cap/flavor.rb new file mode 100644 index 000000000..5ade9d18c --- /dev/null +++ b/plugins/guests/pld/cap/flavor.rb @@ -0,0 +1,11 @@ +module VagrantPlugins + module GuestPld + module Cap + class Flavor + def self.flavor(machine) + return :pld + end + end + end + end +end diff --git a/plugins/guests/pld/plugin.rb b/plugins/guests/pld/plugin.rb index ef7939fad..697599c81 100644 --- a/plugins/guests/pld/plugin.rb +++ b/plugins/guests/pld/plugin.rb @@ -20,6 +20,11 @@ module VagrantPlugins require_relative "cap/network_scripts_dir" Cap::NetworkScriptsDir end + + guest_capability("pld", "flavor") do + require_relative "cap/flavor" + Cap::Flavor + end end end end