Merge pull request #41 from xiboy/master

Support ceph user other than admin
This commit is contained in:
Vaibhav Bhembre 2016-12-28 09:45:05 -05:00 committed by GitHub
commit 0475cf4e94
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}