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

Named parameters (Option) unavailable when using raw_arguments=true #477

Open
dominiquevocat opened this issue Aug 8, 2022 · 1 comment

Comments

@dominiquevocat
Copy link

Describe the bug

when a command uses support_rawargs named parameters are not passed. Used to work with splunklib 1.6.12, doesn't seem to work with splunklib 1.7.0

To reproduce

commands.conf:
[xx]
passauth = true
chunked=true
supports_rawargs = true
local = true

code snippet:
@configuration(local=True)
class xx(GeneratingCommand):
splunk_server = Option(require=False, default="*" )

results in always being the value "*" and changing it to require=True causes it to fail with "A value for "splunk_server" is required" but it is in the splunk search.

Expected behaviour

Named parameters are available when using raw_arguments = true and the above mentioned settings in commands.conf - i can reproduce it as working with splunklib 1.6.12

Splunk
Version: 8.2.5
Deployment: searchhead

SDK
Version 1.7.0
Language Version Runtime: Python 3.7.11
OS: RHEL 8

@dominiquevocat
Copy link
Author

splunklib 1.6.16 also causes the same issue

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

1 participant