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>
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)
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,