Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Sep 24, 2018
1 parent 8dee8c1 commit 77a8465
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/modules/AddOnProduct.rb
Expand Up @@ -1463,13 +1463,8 @@ def AddPreselectedAddOnProducts(filelist)
priority = one_product.fetch("priority", -1).to_i
prodname = one_product.fetch("name", "")
check_name = one_product.fetch("check_name", true)
confirm_license = if Mode.auto
# Default value in AutoYaST is false.
one_product.fetch("confirm_license", false)
else
# Otherwise it is true.
one_product.fetch("confirm_license", true)
end
# the default value in AutoYaST is false, otherwise it is true
confirm_license = one_product.fetch("confirm_license", !Mode.auto)
Builtins.y2milestone("confirm_license: %1", confirm_license)

# Check URL and setup network if required or prompt to insert CD/DVD
Expand Down

0 comments on commit 77a8465

Please sign in to comment.