golismero / openvas_lib

OpenVAS connector for versions 6, 7, 8 and 9
BSD 3-Clause "New" or "Revised" License
80 stars 100 forks source link

Create_task() doesnt pass schedule ID to the request #43

Open MrSud0 opened 4 years ago

MrSud0 commented 4 years ago

Hello, I have noticed an issue when creating a task with a schedule ID, when no schedule is passed in the XML. I run: scanner._VulnscanManager__manager.create_task(name="scheduled_task", target="48535fab-92f1-4778-bf2d-ac04a43e698b", config="daba56c8-73ec-11df-a475-002264764cea", schedule="2d012ecf-913d-4436-b37c-00470c56a121", max_hosts=5, max_checks=4, comment="a very detailed comment")

I checked the .get_tasks_detail response and I saw that response ID is always "" no matter what i put in "schedule=", config, target id and the rest parameters are passed normally.

Thanks.