Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions