Skip to content

Commit

Permalink
Fix file expansion problem with PE.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed May 29, 2013
1 parent 15a5635 commit 2a33f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/network_config/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a33f46

Please sign in to comment.