Merge "Add osc support to update plan description"

This commit is contained in:
Zuul 2018-12-04 07:17:46 +00:00 committed by Gerrit Code Review
commit a0a7b4a24b
1 changed files with 7 additions and 0 deletions

View File

@ -210,6 +210,11 @@ class UpdatePlan(command.ShowOne):
metavar="<name>",
help=_("A name to which the plan will be renamed.")
)
parser.add_argument(
"--description",
metavar="<description>",
help=_("Description to which the plan will be updated.")
)
parser.add_argument(
"--resources",
metavar="<id=type=name,id=type=name>",
@ -227,6 +232,8 @@ class UpdatePlan(command.ShowOne):
data = {}
if parsed_args.name is not None:
data['name'] = parsed_args.name
if parsed_args.description is not None:
data['description'] = parsed_args.description
if parsed_args.resources is not None:
plan_resources = utils.extract_resources(parsed_args)
data['resources'] = plan_resources