Skip to content

Commit

Permalink
fix: Remove unused getRHSMConfigOption() function
Browse files Browse the repository at this point in the history
* This function was used only in GuessAPIURL() and it was removed
  in previous commit: f7e8ffa
  • Loading branch information
jirihnidek authored and subpop committed Nov 6, 2024
1 parent 0ca442e commit 55f1ef2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions rhsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,24 +394,6 @@ func configureRHSM(serverURL string) error {
return nil
}

func getRHSMConfigOption(name string, val interface{}) error {
conn, err := dbus.SystemBus()
if err != nil {
return fmt.Errorf("cannot connect to system D-Bus: %w", err)
}
locale := getLocale()
obj := conn.Object("com.redhat.RHSM1", "/com/redhat/RHSM1/Config")
if err := obj.Call(
"com.redhat.RHSM1.Config.Get",
dbus.Flags(0),
name,
locale).Store(val); err != nil {
return unpackRHSMError(err)
}

return nil
}

// registerRHSM tries to register system against Red Hat Subscription Management server (candlepin server)
func registerRHSM(ctx *cli.Context) (string, error) {
uuid, err := getConsumerUUID()
Expand Down

0 comments on commit 55f1ef2

Please sign in to comment.