python-gvm
python-gvm copied to clipboard
get_tasks function does not accept ignore_pagination parameter
Expected behavior
as described here , get_tasks should accept the ignore_pagination parameter. using python modules the parameter is not recognized
https://docs.greenbone.net/API/GMP/gmp-21.4.html#command_get_tasks https://greenbone.github.io/python-gvm/api/gmpv224.html#gvm.protocols.gmpv224.Gmp.get_tasks
Current behavior
it's not possible to specify the value as input to the variable, nor is it possible to specify the page to be obtained.
Steps to reproduce
from gvm.connections import UnixSocketConnection
from gvm.protocols.gmp import Gmp
from gvm.transforms import EtreeTransform
from gvm.xml import pretty_print
connection = UnixSocketConnection()
transform = EtreeTransform()
with Gmp(connection, transform=transform) as gmp:
gmp.authenticate(gmp_user, gmp_password)
tasks = gmp.get_tasks(ignore_pagination = True)
GVM versions
gmp: 22.4