Skip to content

Commit

Permalink
[service] Do not crash when software/products is not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Feb 6, 2024
1 parent 48df260 commit a105391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/lib/agama/autoyast/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def export_storage(drives)

# @param profile [Hash] Software section from the AutoYaST profile
def export_software(profile)
product = profile.fetch("products", []).first
product = profile.fetch_as_array("products").first
return {} unless product

{ "product" => product }
Expand Down

0 comments on commit a105391

Please sign in to comment.