Skip to content

Commit d057f32

Browse files
committed
Remove system de-registering from internal
Signed-off-by: Miquel Sabaté Solà <[email protected]>
1 parent 19c93b5 commit d057f32

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

internal/connect/api.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ func deactivateProduct(product Product) (Service, error) {
117117
return remoteService, nil
118118
}
119119

120-
func deregisterSystem() error {
121-
_, err := callHTTP("DELETE", "/connect/systems", nil, nil, authSystem)
122-
return err
123-
}
124-
125120
func syncProducts(products []Product) ([]Product, error) {
126121
remoteProducts := make([]Product, 0)
127122
var payload struct {

internal/connect/client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,6 @@ func DeactivateProduct(product Product) (Service, error) {
439439
return deactivateProduct(product)
440440
}
441441

442-
// DeregisterSystem deletes current system in SMT/SCC
443-
func DeregisterSystem() error {
444-
return deregisterSystem()
445-
}
446-
447442
// Returns the zypper repositories for the installer updates endpoint.
448443
func InstallerUpdates(opts *Options, product Product) ([]zypper.Repository, error) {
449444
repos := make([]zypper.Repository, 0)

third_party/libsuseconnect/libsuseconnect.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ func update_system(clientParams, distroTarget *C.char) *C.char {
9191

9292
//export deactivate_system
9393
func deactivate_system(clientParams *C.char) *C.char {
94-
_ = loadConfig(C.GoString(clientParams))
94+
opts := loadConfig(C.GoString(clientParams))
9595

96-
err := connect.DeregisterSystem()
96+
err := connect.Deregister(opts)
9797
if err != nil {
9898
return C.CString(errorToJSON(err))
9999
}

0 commit comments

Comments
 (0)