From b93c882d82e3f58503a22dd741b62588ccc64d48 Mon Sep 17 00:00:00 2001 From: jonnary Date: Mon, 24 Oct 2016 16:22:16 +0800 Subject: [PATCH] Add receiver type instruction Users can't know which type can be used. Add "Receiver type can be "webhook" or "message". Default to "webhook"." Change-Id: If4ec21f2775d7bbaa52f6c3a7a3e4412492a7776 --- senlinclient/v1/receiver.py | 3 ++- senlinclient/v1/shell.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/senlinclient/v1/receiver.py b/senlinclient/v1/receiver.py index 22674cfb..8c97b667 100644 --- a/senlinclient/v1/receiver.py +++ b/senlinclient/v1/receiver.py @@ -157,7 +157,8 @@ class CreateReceiver(command.ShowOne): '--type', metavar='', default='webhook', - help=_('Type of the receiver to create') + help=_('Type of the receiver to create. Receiver type can be ' + '"webhook" or "message". Default to "webhook".') ) parser.add_argument( '--params', diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 43628f93..86b3535e 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -1359,7 +1359,8 @@ def do_receiver_show(service, args): @utils.arg('-t', '--type', metavar='', default='webhook', - help=_('Type of the receiver to create.')) + help=_('Type of the receiver to create. Receiver type can be ' + '"webhook" or "message". Default to "webhook".')) @utils.arg('-c', '--cluster', metavar='', help=_('Targeted cluster for this receiver. Required if receiver ' 'type is webhook.'))