Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of unified repositories does not match IPv4, IPv6 creation. #901

Open
cybit opened this issue Mar 27, 2025 · 0 comments · May be fixed by #902 or #904
Open

Creation of unified repositories does not match IPv4, IPv6 creation. #901

cybit opened this issue Mar 27, 2025 · 0 comments · May be fixed by #902 or #904

Comments

@cybit
Copy link

cybit commented Mar 27, 2025

Describe the bug
New repositories with types IPv4 and IPv6 can be created using name, description, ipRange, format.
With type universal that is not the case. Even though Tenable API documentation implies that the repositories behave the same.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to a current sc instance using pytenable.
  2. Call TenableSC.repositories.create(name="Test",description="Some test",format="IPv4")
  3. Call TenableSC.repositories.create(name="Test universal",description="Some test universal",format="universal")
  4. On second call get error, that "trendingDays" is not set
  5. See error

Expected behavior
The library should behave the same with IPv4, IPv6 and universal repositories. Defaults set by the library in the former repository dataFormats should be set for the new dataFormat as well.

Screenshots
Sorry, did not add any

System Information (please complete the following information):

  • OS: MacOS
  • Architecture ARM
  • Version current
  • Memory don't know, not the issue.

Additional context
Tenable API documentation and PyTenable documentation differ in the description which parameter does have a DEFAULT value / is optional.

@SteveMcGrath SteveMcGrath linked a pull request Mar 31, 2025 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant