From 40fd8712893a78eb4a001746ea7b4164888bb049 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Thu, 7 May 2015 20:04:43 +0000 Subject: [PATCH] Always prefix RGW daemons wth 'rgw.' If a user specifics a custom RGW daemon name, automatically prefix it with 'rgw.' Fixes: http://tracker.ceph.com/issues/11561 Signed-off-by: Travis Rhoden --- ceph_deploy/rgw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/rgw.py b/ceph_deploy/rgw.py index 7364efc..a01f3ee 100644 --- a/ceph_deploy/rgw.py +++ b/ceph_deploy/rgw.py @@ -176,9 +176,10 @@ def rgw(args): def colon_separated(s): host = s - name = 'rgw.' + s + name = s if s.count(':') == 1: (host, name) = s.split(':') + name = 'rgw.' + name return (host, name) @@ -200,7 +201,8 @@ def make(parser): metavar='HOST[:NAME]', nargs='*', type=colon_separated, - help='host (and optionally the daemon name) to deploy on', + help='host (and optionally the daemon name) to deploy on. \ + NAME is automatically prefixed with \'rgw.\'', ) parser.set_defaults( func=rgw, -- 2.47.3