diff --git a/pkg/operator/ceph/config/monstore.go b/pkg/operator/ceph/config/monstore.go index c1fe4fe2b..685621a6e 100644 --- a/pkg/operator/ceph/config/monstore.go +++ b/pkg/operator/ceph/config/monstore.go @@ -20,6 +20,7 @@ import ( "github.com/pkg/errors" "github.com/rook/rook/pkg/clusterd" "github.com/rook/rook/pkg/daemon/ceph/client" + "strings" ) // MonStore provides methods for setting Ceph configurations in the centralized mon @@ -71,7 +72,7 @@ func (m *MonStore) Get(who, option string) (string, error) { if err != nil { return "", errors.Wrapf(err, "failed to get config setting %q for user %q", option, who) } - return string(out), nil + return strings.TrimSpace(string(out)), nil } // SetAll sets all configs from the overrides in the centralized mon configuration database.