Skip to content

Commit

Permalink
Set description in spec for library task (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbhaybagmar authored Dec 1, 2021
1 parent 3144e9f commit addf0ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions calm/dsl/cli/library_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ def create_library_task_from_json(
else:
name = task_payload.get("spec").get("name")

if description:
task_payload["spec"]["description"] = description

return create_update_library_task(
client,
task_payload,
Expand All @@ -414,6 +417,9 @@ def create_library_task_from_dsl(
else:
name = task_payload.get("spec").get("name")

if description:
task_payload["spec"]["description"] = description

return create_update_library_task(
client,
task_payload,
Expand Down

0 comments on commit addf0ad

Please sign in to comment.