Signed-off-by: Travis Rhoden <trhoden@redhat.com>
' '.join(':'.join(x or '' for x in t) for t in args.rgw),
)
- if not args.rgw:
- raise exc.NeedHostError()
-
key = get_bootstrap_rgw_key(cluster=args.cluster)
bootstrapped = set()
rgw_create.add_argument(
'rgw',
metavar='HOST[:NAME]',
- nargs='*',
+ nargs='+',
type=colon_separated,
help='host (and optionally the daemon name) to deploy on. \
NAME is automatically prefixed with \'rgw.\'',
assert 'positional arguments:' in out
assert 'optional arguments:' in out
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12150")
def test_rgw_create_host_required(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('rgw create'.split())