tenable / pyTenable

Python Library for interfacing into Tenable's platform APIs
https://pytenable.readthedocs.io
MIT License
356 stars 175 forks source link

TenableSC object has no attribute 'accept_risk' on 1.3.2 #408

Closed javimox closed 3 years ago

javimox commented 3 years ago

Describe the bug I am trying to accept risks using pyTenable. It returns (in my case) the following message: AttributeError: 'TenableSC' object has no attribute 'accept_risk'

To Reproduce rule = sc.accept_risks.create(97737, [1], ips=['192.168.0.101', '192.168.0.102'], expires=90) AttributeError: 'TenableSC' object has no attribute 'accept_risk'

Expected behavior The accepted risk rule is sent to Tenable.

System Information (please complete the following information):

Thanks.

javimox commented 3 years ago

the attribute is accept_risks , with s. Sorry, closing the ticket...