Skip to content

Commit

Permalink
removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 19, 2014
1 parent 9e3a32f commit f20a875
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/modules/AutoinstPartition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,9 @@ def parsePartition(part)
end
if !Builtins.isempty(Ops.get_list(part, "subvolumes", []))
subvolumes = part["subvolumes"] || []
subvolumes.collect! do |subvolume|
if subvolume.start_with?(".snapshots")
Builtins.y2milestone("Ignoring subvolume '%1'",subvolume)
nil
else
subvolume
end
end
Ops.set(newPart, "subvolumes", subvolumes.compact)
#Filtering out all snapper subvolumes
subvolumes.select! { |subvolume| !subvolume.start_with?(".snapshots") }
Ops.set(newPart, "subvolumes", subvolumes)
else
newPart = Builtins.remove(newPart, "subvolumes")
end
Expand Down

0 comments on commit f20a875

Please sign in to comment.