Describe the bug
Calling sc.scans.create() with a specified target(s) fails due to an apparent typo.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/tenable/sc/scans.py", line 301, in create
scan = self._constructor(**kw)
File "/usr/local/lib/python3.5/dist-packages/tenable/sc/scans.py", line 112, in _constructor
del(kw['trargets'])
KeyError: 'trargets'
To Reproduce
Steps to reproduce the behavior:
Create a TenableSC object and authenticate with login()
Call create()
e.g. sc.scans.create(name="myName", repo=1, targets=[target_ip])
See error
Expected behavior
The scan is created successfully.
System Information (please complete the following information):
Describe the bug Calling sc.scans.create() with a specified target(s) fails due to an apparent typo.
To Reproduce Steps to reproduce the behavior:
login()
create()
sc.scans.create(name="myName", repo=1, targets=[target_ip])
Expected behavior The scan is created successfully.
System Information (please complete the following information):