Ensure cluster is specified when creating receivers

The cluster parameter is not optional when creating a receiver. This
patch explicitly adds this requirement.

Change-Id: I7470a2069d0b0308a5e0132dcaeb1193d0177c70
This commit is contained in:
tengqm
2016-02-20 22:06:21 -05:00
parent 2f0dfa7175
commit f25fb949a8

View File

@@ -1006,7 +1006,7 @@ def do_receiver_show(service, args):
@utils.arg('-t', '--type', metavar='<TYPE>', default='webhook',
help=_('Type of the receiver to create.'))
@utils.arg('-c', '--cluster', metavar='<CLUSTER>',
@utils.arg('-c', '--cluster', metavar='<CLUSTER>', required=True,
help=_('Targeted cluster for this receiver.'))
@utils.arg('-a', '--action', metavar='<ACTION>', required=True,
help=_('Name or ID of the targeted action to be triggered.'))