-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Milestone
Description
Trying to call tasks_api.clone_task(my_task)
fails because it tries to create a new task with an ID of None, which fails in the Task setter.
Traceback (most recent call last):
File "/Users/rsavage/workspace/pm-team/tools-cluster/./generate-tasks.py", line 54, in <module>
main(config, args.task_id, args.clones, args.inactive)
File "/Users/rsavage/workspace/pm-team/tools-cluster/./generate-tasks.py", line 14, in main
new_task = tasks_api.clone_task(task)
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/tasks_api.py", line 101, in clone_task
cloned = Task(name=task.name, org_id=task.org_id, org=task.org, flux=task.flux, status="active")
File "/usr/local/lib/python3.9/site-packages/influxdb_client/domain/task.py", line 101, in __init__
self.id = id
File "/usr/local/lib/python3.9/site-packages/influxdb_client/domain/task.py", line 153, in id
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
ValueError: Invalid value for `id`, must not be `None`
Metadata
Metadata
Assignees
Labels
No labels