From 77a8465a7b640bcb398d794999e770d9cae72962 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Mon, 24 Sep 2018 14:36:33 +0200 Subject: [PATCH] code cleanup --- src/modules/AddOnProduct.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/modules/AddOnProduct.rb b/src/modules/AddOnProduct.rb index 73e97b802..97a7dbcdc 100644 --- a/src/modules/AddOnProduct.rb +++ b/src/modules/AddOnProduct.rb @@ -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