From: Dan Mick Date: Thu, 11 Jul 2013 04:55:38 +0000 (-0700) Subject: ceph-rest-api: connect to cluster with configured client name X-Git-Tag: v0.67-rc1~87 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a6251c80dbfb2d0fe9bfd38418e5db42b153058;p=ceph.git ceph-rest-api: connect to cluster with configured client name Spotted by Noah Watkins Signed-off-by: Dan Mick --- diff --git a/src/ceph-rest-api b/src/ceph-rest-api index 3dc16cff2bd3..7a4db38915d1 100755 --- a/src/ceph-rest-api +++ b/src/ceph-rest-api @@ -153,7 +153,7 @@ def api_setup(): glob.logfile = '/var/log/ceph' + glob.clientname + '.log' glob.clientname = glob.args.name or DEFAULT_CLIENTNAME - glob.cluster = rados.Rados(name='client.restapi', conffile=conffile) + glob.cluster = rados.Rados(name=glob.clientname, conffile=conffile) glob.cluster.connect() cfg = load_conf(conffile)