summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-03 09:35:06 +0000
committerGerrit Code Review <review@openstack.org>2018-12-03 09:35:06 +0000
commitb1b7da4dc7f7bc4875de9c3aa73d850589165537 (patch)
tree6cd968c6241ac2e763add0ea46c3a02b658b4032
parent86ec524b831cf45c290ac84e0c39033c35519fba (diff)
parenta69cd9b3e393a981cde66a1532241b858bdf6b07 (diff)
Merge "Add support to update plan description"
-rw-r--r--karbor/api/schemas/plans.py1
-rw-r--r--karbor/api/v1/plans.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/karbor/api/schemas/plans.py b/karbor/api/schemas/plans.py
index d8a0088..65f685d 100644
--- a/karbor/api/schemas/plans.py
+++ b/karbor/api/schemas/plans.py
@@ -49,6 +49,7 @@ update = {
49 'name': parameter_types.name, 49 'name': parameter_types.name,
50 'status': {'type': ['string', 'null']}, 50 'status': {'type': ['string', 'null']},
51 'resources': parameter_types.resources, 51 'resources': parameter_types.resources,
52 'description': parameter_types.description,
52 }, 53 },
53 'required': [], 54 'required': [],
54 'additionalProperties': False, 55 'additionalProperties': False,
diff --git a/karbor/api/v1/plans.py b/karbor/api/v1/plans.py
index 8f0d61c..e6b5152 100644
--- a/karbor/api/v1/plans.py
+++ b/karbor/api/v1/plans.py
@@ -303,6 +303,7 @@ class PlansController(wsgi.Controller):
303 'name', 303 'name',
304 'resources', 304 'resources',
305 'status', 305 'status',
306 'description',
306 } 307 }
307 for key in valid_update_keys.intersection(plan): 308 for key in valid_update_keys.intersection(plan):
308 update_dict[key] = plan[key] 309 update_dict[key] = plan[key]