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

service.storage_passwords.list misses space in username field #400

Closed
ghost opened this issue Sep 24, 2021 · 2 comments
Closed

service.storage_passwords.list misses space in username field #400

ghost opened this issue Sep 24, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 24, 2021

Describe the bug
service.storage_passwords.list misses space in username field.

To Reproduce
Steps to reproduce the behavior:

  1. Install https://splunkbase.splunk.com/app/2731/
  2. Add
[ test]
account_name = ucspe
account_password = ucspe
disable_ssl_verification = True
server_url = 10.141.36.107

to local/splunk_ta_cisco_ucs_servers.conf.
3. Go to Splunk, open Cisco UCS app and refresh the page.
4. Run this Python script

from splunklib.client import connect

service = connect(username="admin", password="<your-admin-password>")


all_passwords = service.storage_passwords.list(count=-1, search="")

for p in all_passwords:
    print(p.state)
  1. See that username field does not have space, but the stanza that we add in step 2 has.

Expected behavior
Username field should have space in it.

Splunk (please complete the following information):

  • Version: 8.2.2.1
  • OS: MacOS 11.6
  • Deployment: single-instance

SDK (please complete the following information):

  • Version: 1.6.16
  • Language Runtime Version: Python 3.7
  • OS: MacOS 11.6
@akaila-splunk
Copy link
Contributor

Hi @arys-splunk , We have fixed the issue, and the changes will be available in the next release.
PR for reference - #416

@ashah-splunk
Copy link
Contributor

@arys-splunk please refer the latest python-sdk release 1.6.19, and please let us know if the issue still exists.

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