Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SUSEConnect -d error message on Public Cloud generic #267

Merged
merged 3 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build/packaging/suseconnect-ng.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Next release:

- Update error message for Public Cloud instances with registercloudguest
installed. SUSEConnect -d is disabled on PYAG and BYOS when the
registercloudguest command is available. (bsc#1230861)

-------------------------------------------------------------------
Thu Nov 14 11:01:05 UTC 2024 - Miquel Sabaté Solà <msabate@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion internal/connect/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func registerProductTree(product Product, jsonOutput bool, out *RegisterOut) err
func Deregister(jsonOutput bool) error {
if util.FileExists("/usr/sbin/registercloudguest") && CFG.Product.isEmpty() {
return fmt.Errorf("SUSE::Connect::UnsupportedOperation: " +
"De-registration is disabled for on-demand instances. " +
"De-registration via SUSEConnect is disabled by registercloudguest." +
"Use `registercloudguest --clean` instead.")
}

Expand Down
Loading