From 2a33f4626e5ee18977b2e17d98e8b39c959bec32 Mon Sep 17 00:00:00 2001 From: Nan Liu Date: Tue, 28 May 2013 17:30:39 -0700 Subject: [PATCH] Fix file expansion problem with PE. --- lib/puppet/provider/network_config/redhat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/network_config/redhat.rb b/lib/puppet/provider/network_config/redhat.rb index ccc9e5c4..67cee1ad 100644 --- a/lib/puppet/provider/network_config/redhat.rb +++ b/lib/puppet/provider/network_config/redhat.rb @@ -57,7 +57,7 @@ def select_file # # => ['/etc/sysconfig/network-scripts/ifcfg-eth0', '/etc/sysconfig/network-scripts/ifcfg-eth1'] def self.target_files(script_dir = SCRIPT_DIRECTORY) entries = Dir.entries(script_dir).select {|entry| entry.match SCRIPT_REGEX} - entries.map {|entry| File.expand_path(entry)} + entries.map {|entry| File.join(SCRIPT_DIRECTORY, entry)} end # Convert a redhat network script into a hash