From 899d1e78c2e101b50a92882efcf775582e529984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Mon, 10 May 2021 16:50:27 +0100 Subject: [PATCH] Import the 'rerun_on_error' element --- src/lib/autoinstall/autoinst_profile/script_section.rb | 4 ++-- src/lib/autoinstall/script.rb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/autoinstall/autoinst_profile/script_section.rb b/src/lib/autoinstall/autoinst_profile/script_section.rb index 473c2cede..9dd77d052 100644 --- a/src/lib/autoinstall/autoinst_profile/script_section.rb +++ b/src/lib/autoinstall/autoinst_profile/script_section.rb @@ -37,9 +37,9 @@ def self.attributes { name: :feedback }, { name: :feedback_type }, { name: :rerun }, + { name: :rerun_on_error }, { name: :notification }, - { name: :param_list, xml_name: "param-list" }, - { name: :environment } + { name: :param_list, xml_name: "param-list" } ] end diff --git a/src/lib/autoinstall/script.rb b/src/lib/autoinstall/script.rb index 3fd08095f..54812c30b 100644 --- a/src/lib/autoinstall/script.rb +++ b/src/lib/autoinstall/script.rb @@ -428,10 +428,14 @@ def self.type "ask-scripts" end + # Constructor + # + # @note The 'rerun' key is ignored. def initialize(hash) super @environment = !!hash["environment"] @rerun_on_error = !!hash["rerun_on_error"] + @rerun = true end def to_hash