]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Always prefix RGW daemons wth 'rgw.'
authorTravis Rhoden <trhoden@redhat.com>
Thu, 7 May 2015 20:04:43 +0000 (20:04 +0000)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 12 May 2015 15:39:29 +0000 (11:39 -0400)
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 <trhoden@redhat.com>
ceph_deploy/rgw.py

index 7364efc75fe15c7725846d620e03e4d0f985d188..a01f3eeb8196fe8b57704fd5bc9546e6c4f130ef 100644 (file)
@@ -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,