From a79baaf6c72723bfe1a497db663a36dd6333a886 Mon Sep 17 00:00:00 2001 From: Lukas Ocilka Date: Mon, 21 Jul 2014 15:31:44 +0200 Subject: [PATCH] Shortened - hash doesn't need a default value --- src/include/autoinstall/conftree.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/autoinstall/conftree.rb b/src/include/autoinstall/conftree.rb index b7a9bfe35..38f55d94b 100644 --- a/src/include/autoinstall/conftree.rb +++ b/src/include/autoinstall/conftree.rb @@ -255,7 +255,7 @@ def updateButtons(selectedModule) # set read button status resourceMap = Y2ModuleConfig.ModuleMap.fetch(selectedModule, {}) - clonable = resourceMap.fetch("X-SuSE-YaST-AutoInstClonable", "false") == "true" + clonable = resourceMap["X-SuSE-YaST-AutoInstClonable"] == "true" clone_button_status = clonable || ALWAYS_CLONABLE_MODULES.include?(selectedModule) UI.ChangeWidget(Id(:read), :Enabled, clone_button_status)