Skip to content

Commit

Permalink
Do not crash when no base product to register is found (bsc#1122011)
Browse files Browse the repository at this point in the history
- 4.1.13
  • Loading branch information
lslezak committed Jan 16, 2019
1 parent 86a025b commit a269c9d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package/yast2-registration.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 16 08:53:13 UTC 2019 - lslezak@suse.cz

- Do not crash when no base product to register is found
(bsc#1122011)
- 4.1.13

-------------------------------------------------------------------
Thu Jan 10 09:58:10 UTC 2019 - lslezak@suse.cz

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-registration.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-registration
Version: 4.1.12
Version: 4.1.13
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
5 changes: 5 additions & 0 deletions src/lib/registration/registration.rb
Expand Up @@ -134,6 +134,11 @@ def get_addon_list
# extensions for base product
base_product = ::Registration::SwMgmt.base_product_to_register

if !base_product
log.warn "No base product, skipping addons"
return
end

log.info "Reading available addons for product: #{base_product["name"]}"

remote_product = SwMgmt.remote_product(base_product)
Expand Down

0 comments on commit a269c9d

Please sign in to comment.