Merge pull request #41 from xiboy/master
Support ceph user other than admin
This commit is contained in:
commit
0475cf4e94
|
@ -81,10 +81,11 @@ func main() {
|
|||
metricsPath = flag.String("telemetry.path", "/metrics", "URL path for surfacing collected metrics")
|
||||
|
||||
cephConfig = flag.String("ceph.config", "", "path to ceph config file")
|
||||
cephUser = flag.String("ceph.user", "admin", "Ceph user to connect to cluster.")
|
||||
)
|
||||
flag.Parse()
|
||||
|
||||
conn, err := rados.NewConn()
|
||||
conn, err := rados.NewConnWithUser(*cephUser)
|
||||
if err != nil {
|
||||
log.Fatalf("cannot create new ceph connection: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue