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