From cd918fe08627488f85bc62c4da9d4f6e9c6bb81f Mon Sep 17 00:00:00 2001
From: licanwei
Date: Mon, 6 Feb 2017 17:27:35 +0800
Subject: [PATCH] update help description about actionplan create
help=_("ActionPlan type.")
=>
help=_("Audit type. It must be ONESHOT or CONTINUOUS. "
"Default is ONESHOT."))
Change-Id: Ic79b5d1d0cb5ed459aaa290269219ff0e00065d5
---
watcherclient/v1/action_plan_shell.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/watcherclient/v1/action_plan_shell.py b/watcherclient/v1/action_plan_shell.py
index 4197201..435f76e 100644
--- a/watcherclient/v1/action_plan_shell.py
+++ b/watcherclient/v1/action_plan_shell.py
@@ -181,13 +181,15 @@ class CreateActionPlan(command.ShowOne):
required=True,
dest='audit_template_uuid',
metavar='',
- help=_('ActionPlan template used for this audit (name or uuid).'))
+ help=_('Audit template used for this audit (name or uuid).'))
parser.add_argument(
'-t', '--audit_type',
dest='audit_type',
metavar='',
default='ONESHOT',
- help=_("ActionPlan type."))
+ choices=['ONESHOT', 'CONTINUOUS'],
+ help=_("Audit type. It must be ONESHOT or CONTINUOUS. "
+ "Default is ONESHOT."))
return parser