Skip to content

Commit

Permalink
config: remove incorrect shutdown when not yet connected
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
  • Loading branch information
MrFreezeex committed Jul 12, 2022
1 parent 7041dc4 commit 3fb1d39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ceph/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func (config *Config) GetCephConnection() (*rados.Conn, error) {
}
defer os.Remove(keyringFile.Name())
if err = conn.SetConfigOption("keyring", keyringFile.Name()); err != nil {
conn.Shutdown()
return nil, err
}
if _, err = keyringFile.WriteString(config.Keyring); err != nil {
Expand Down

0 comments on commit 3fb1d39

Please sign in to comment.