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

adjust forwarder splunk_api response check #829

Merged
merged 1 commit into from
May 8, 2024

Conversation

jmeixensperger
Copy link
Contributor

@jmeixensperger jmeixensperger commented May 7, 2024

Fixes the following reported issues:

splunk_api response does not contain key content.

Here is the full json output from the response on a heavy forwarder:

{'changed': False, 'status': 200, 'json': {'links': {}, 'origin': 'https://127.0.0.1:8089/services/licenser/groups', 'updated': '2024-05-07T21:33:16+00:00', 'generator': {'build': 'b985591d12fd', 'version': '9.0.7'}, 'entry': [{'name': 'Forwarder', 'id': 'https://127.0.0.1:8089/services/licenser/groups/Forwarder', 'updated': '1970-01-01T00:00:00+00:00', 'links': {'alternate': '/services/licenser/groups/Forwarder', 'list': '/services/licenser/groups/Forwarder', 'edit': '/services/licenser/groups/Forwarder'}, 'author': 'system', 'acl': {'app': '', 'can_list': True, 'can_write': True, 'modifiable': False, 'owner': 'system', 'perms': {'read': ['admin', 'splunk-system-role'], 'write': ['admin', 'splunk-system-role']}, 'removable': False, 'sharing': 'system'}, 'fields': {'required': ['is_active'], 'optional': [], 'wildcard': []}, 'content': {'eai:acl': None, 'is_active': False, 'stack_ids': ['forwarder']}}], 'paging': {'total': 1, 'perPage': 30, 'offset': 0}, 'messages': []}, 'excep_str': 'No Exception', 'failed': False}

@jmeixensperger jmeixensperger requested a review from a team as a code owner May 7, 2024 21:57
@jmeixensperger jmeixensperger changed the title adjust splunk_api response check adjust forwarder splunk_api response check May 7, 2024
@jmeixensperger jmeixensperger merged commit e436c07 into develop May 8, 2024
@jmeixensperger jmeixensperger deleted the forwarder-license-content branch May 8, 2024 17:17
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

Successfully merging this pull request may close these issues.

None yet

3 participants