Skip to content

Commit

Permalink
Use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Jan 2, 2018
1 parent d6b8fa5 commit 3212138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Nfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def read_etc_fstab

# TO DO: Prepend $target to path (maybe running in the inst-sys?)
fstab = EtcFstab.new(@etc_fstab_name)
nfs_entries = fstab.entries.select { |e| e.fs_type.start_with?("nfs") }
nfs_entries = fstab.select { |e| e.fs_type.start_with?("nfs") }
@nfs_entries = nfs_entries.map do |entry|
share = {}
share["spec"] = entry.device
Expand Down Expand Up @@ -351,7 +351,7 @@ def merge_entries(fstab)
#
def remove_unknown_shares(fstab)
shares = @nfs_entries.map { |share| share["spec"] }
fstab.entries.delete_if do |entry|
fstab.delete_if do |entry|
entry.fs_type.start_with?("nfs") && !shares.include?(entry.device)
end
end
Expand Down

0 comments on commit 3212138

Please sign in to comment.