Skip to content

Commit

Permalink
Fixed paths and method name
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Jan 2, 2018
1 parent 24f8efe commit bab508f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/Nfs.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# encoding: utf-8

require "yast"
require "fstab/tsort"
require "etc_fstab"
require "yast2/etc_fstab"

# YaST namespace
module Yast
Expand Down Expand Up @@ -350,7 +349,7 @@ def merge_entries(fstab)
def remove_unknown_shares(fstab)
shares = @nfs_entries.map { |share| share["spec"] }
fstab.entries.delete_if do |entry|
entry.fs_type.start_with("nfs") && !shares.include?(entry.device)
entry.fs_type.start_with?("nfs") && !shares.include?(entry.device)
end
end

Expand Down

0 comments on commit bab508f

Please sign in to comment.