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

agent_groups.create() in TenableIO doesn't work #699

Open
yaabdala opened this issue May 2, 2023 · 1 comment
Open

agent_groups.create() in TenableIO doesn't work #699

yaabdala opened this issue May 2, 2023 · 1 comment
Labels
Tenable.io Tenable.io Package

Comments

@yaabdala
Copy link

yaabdala commented May 2, 2023

Describe the bug
Using a TIO client and the method agent_groups.create() fails to create an agent group and returns nothing. No error is thrown

To Reproduce
Steps to reproduce the behavior:

def create_new_group(tio_client, prefix, number_of_groups_to_create, current_count):
    new_groups = []

    # for each group, create, name, and add to array.
    for n in range(number_of_groups_to_create - 1):
        group = tio_client.agent_groups.create(prefix + "_" + str(current_count + n))
        new_groups.append(group)

    return new_groups

Fails to create a new group in TIO and the returned group is nil

Expected behavior
New group is created in TIO and the function returns the new group as an object

System Information (please complete the following information):

  • OS: Docker with python3.9
  • Architecture: 64bit
  • Version: latest
  • Memory 4G
@aseemsavio
Copy link
Collaborator

I could not reproduce this. The function tio_client.agent_groups.create seems to work as expected independently. Could the caller code have a bug?

@aseemsavio aseemsavio added the Tenable.io Tenable.io Package label May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tenable.io Tenable.io Package
Projects
None yet
Development

No branches or pull requests

2 participants