You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`
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.https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/tasks_api.py#L101
The text was updated successfully, but these errors were encountered: