Skip to content

Commit

Permalink
Import the 'rerun_on_error' element
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 10, 2021
1 parent c0cf762 commit 899d1e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/autoinstall/autoinst_profile/script_section.rb
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/lib/autoinstall/script.rb
Expand Up @@ -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
Expand Down

0 comments on commit 899d1e7

Please sign in to comment.