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

Config issue new integration version #249

Closed
kmplngj opened this issue May 7, 2024 · 2 comments
Closed

Config issue new integration version #249

kmplngj opened this issue May 7, 2024 · 2 comments

Comments

@kmplngj
Copy link

kmplngj commented May 7, 2024

Hello,

thanks for the rewrite!

I try to get new version running. I installed it in a Conda 3.12 environment, copied the config template and added my tenable/jira keys/tokens.

When I now run the validate I get an error I don't unterstand.

Details
❯ tenb2jira validate ./config.toml                                                                                                                                                                                                                                                                             (jira-tenable)
tenable.platform: Input should be 'tvm' or 'tsc'
'tvm'
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /opt/homebrew/Caskroom/miniconda/base/envs/jira-tenable/lib/python3.12/site-packages/tenb2jira/c │
│ li.py:95 in validate                                                                             │
│                                                                                                  │
│    92 │   errors = validator.validate(config)                                                    │
│    93 │   if errors:                                                                             │
│    94 │   │   for error in errors:                                                               │
│ ❱  95 │   │   │   location = '.'.join(error.get('loc', []))                                      │
│    96 │   │   │   data = tomlkit.dumps(error.get('input'))                                       │
│    97 │   │   │   console.print(f'{location}: {error.get("msg")}')                               │
│    98 │   │   │   console.print(data)                                                            │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │     config = {'tenable': {'platform': 'tvm', 'access_key':

What could be wrong in my config or is this a problem with the validator?

Thanks
Jan

@SteveMcGrath
Copy link
Collaborator

It appears it's not properly handling the situations where there is a limited number of valid choices. looking into it.

@SteveMcGrath
Copy link
Collaborator

Found the issue & corrected it. 2.0.1 should be out later today with the fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants