Skip to content

Commit

Permalink
Merge 001455e into 61967e0
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 31, 2022
2 parents 61967e0 + 001455e commit ba07ada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/registration/clients/scc_auto.rb
Expand Up @@ -95,6 +95,10 @@ def import(settings)
# merge reg code if not defined in the profile but
# available from other sources
product = Yast::AutoinstFunctions.selected_product
# If the real product (an instance from the Product class) is not
# available (e.g. Online medium), just skip reading the regcode because
# the short_name (which is required to find the regcode) is unknown at
# this point. See bsc#1194440.
if product&.respond_to?(:short_name) && !settings["reg_code"]
reg_codes_loader = ::Registration::Storage::RegCodes.instance
settings["reg_code"] = reg_codes_loader.reg_codes[product.short_name] || ""
Expand Down

0 comments on commit ba07ada

Please sign in to comment.