Browse Source

Add support to update plan description

Change-Id: I03f19534613796a1180f8cbc2614a0f40ddc8f87
liushuai 4 months ago
parent
commit
a69cd9b3e3
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      karbor/api/schemas/plans.py
  2. 1
    0
      karbor/api/v1/plans.py

+ 1
- 0
karbor/api/schemas/plans.py View File

@@ -49,6 +49,7 @@ update = {
49 49
                 'name': parameter_types.name,
50 50
                 'status': {'type': ['string', 'null']},
51 51
                 'resources': parameter_types.resources,
52
+                'description': parameter_types.description,
52 53
             },
53 54
             'required': [],
54 55
             'additionalProperties': False,

+ 1
- 0
karbor/api/v1/plans.py View File

@@ -303,6 +303,7 @@ class PlansController(wsgi.Controller):
303 303
             'name',
304 304
             'resources',
305 305
             'status',
306
+            'description',
306 307
         }
307 308
         for key in valid_update_keys.intersection(plan):
308 309
             update_dict[key] = plan[key]

Loading…
Cancel
Save