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

Skip to content

KV Store Collection API - dict Type Issue  #356

Closed
@malvidin

Description

@malvidin

Describe the bug
The **query in KV Store Data API functions have an error in typing or in usage in the function.

def query(self, **query):

return json.loads(self._get('', **query).body.read().decode('utf-8'))

To Reproduce
Use the KVStoreCollectionData query with the dict type prescribed in the docstrings
collection.data.query(query={"id": {"$gt": 24}}) or collection.data.query({"id": {"$gt": 24}})

Expected behavior
The previous queries should succeed, as documented.
https://docs.splunk.com/Documentation/Splunk/8.1.0/RESTREF/RESTkvstore

Splunk Version

  • Version: 8.1.0
  • OS: Docker Build 5c3f219bbb6b

splunklib Version

  • Version: 1.6.14
  • Language Runtime Version: Python 3.7
  • OS: Ubuntu 20.04

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