Skip to content

Conversation

@MikeyTide
Copy link

@MikeyTide MikeyTide commented Nov 12, 2025

SUMMARY

This pull request adds a new module sssd_info that allows users to check SSSD domain status and retrieve domain information using D-Bus.

The module provides the following actions:

  • domain_status - Check if a specific domain is online
  • domain_list - List all configured SSSD domains
  • active_servers - Get active servers for a specific domain and server type (IPA/AD)
  • list_servers - List all servers for a specific domain and server type (IPA/AD)
ISSUE TYPE
  • New Module/Plugin Pull Request
COMPONENT NAME

sssd_info

ADDITIONAL INFORMATION

The module uses D-Bus to communicate with SSSD's infopipe interface, providing reliable and direct access to SSSD status information without relying on command-line tools.

Key features:

  • Supports both IPA and AD domains
  • Provides comprehensive error handling for D-Bus exceptions
  • Works in check mode
  • Returns structured data for easy use in playbooks

Example usage:

- name: Check if domain is online
  community.general.sssd_info:
    action: domain_status
    domain: example.com

- name: Get list of all domains
  community.general.sssd_info:
    action: domain_list

- name: Get active IPA servers
  community.general.sssd_info:
    action: active_servers
    domain: example.com
    server_type: IPA

@ansibullbot ansibullbot added module module new_contributor Help guide this first time contributor new_plugin New plugin plugins plugin (any type) tests tests unit tests/unit labels Nov 12, 2025
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Nov 12, 2025
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-12 Automatically create a backport for the stable-12 branch labels Nov 12, 2025
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MikeyTide

Thanks for the contribution! I left some comments in there for you, and I strongly suggest you read more documentation as you proceed.

@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Nov 22, 2025
@ansibullbot ansibullbot removed the stale_ci CI is older than 7 days, rerun before merging label Dec 1, 2025
@MikeyTide
Copy link
Author

@russoz Hi, thank you for reviewing my pull request. I have made the necessary fixes. If you have time, please take another look.

@ansibullbot

This comment was marked as outdated.

@ansibullbot

This comment was marked as outdated.

Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @MikeyTide thanks for your contribution!

Please see my initial comments.

Comment on lines 118 to 124
DBUS_IMP_ERR = None
HAS_DBUS = False
try:
import dbus
HAS_DBUS = True
except Exception:
DBUS_IMP_ERR = traceback.format_exc()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to consider using module_utils.deps, see https://docs.ansible.com/ansible/latest/collections/community/general/docsite/guide_deps.html for guidance on how to use it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @russoz, thank you so much for showing me this module. I tried using it, could you take a look at this specific comment? That way I don't have to push the entire code.
Thanks in advance for helping with my pull request.

....
....

import traceback

from ansible.module_utils.basic import AnsibleModule, missing_required_lib

try:
from ansible_collections.community.general.plugins.module_utils import deps

with deps.declare("dbus-python"):
    import dbus
HAS_DBUS = True
DBUS_IMP_ERR = None

except Exception as e:
HAS_DBUS = False
DBUS_IMP_ERR = e
....
....

def main() -> None:
....
....
try:
from ansible_collections.community.general.plugins.module_utils import deps
deps.validate(module)
except ImportError:
if not HAS_DBUS:
from ansible.module_utils.basic import missing_required_lib
module.fail_json(msg=missing_required_lib('dbus-python'))
....
....

if name == 'main':
main()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @MikeyTide

Use "```" before and after code in GH comments, it makes the code block readable.

Now, that being said, I would suggest you go through that documentation one more time, carefully, because you are still trying to use the old mechanism together with deps and that makes it a bit confusing.

You may want to check on other modules that use deps (search for "import deps" and you will hit many of them here). In particular, one that is relatively simple is

https://github.com/ansible-collections/community.general/blob/main/plugins/modules/dnsimple_info.py#L298


DOCUMENTATION = r'''
---
module: sssd_info
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module: sssd_info
module: sssd_info
version_added: 12.1.0

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually 12.1.0 was released a couple of days ago, you need to bump this up to 12.2.0 now

Comment on lines +7 to +14
- id: test_domain_status_online
input:
action: domain_status
domain: example.com
output:
online: online
mocks:
run_command: []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current state, uthelper is useless for modules that do not run external commands (with run_command()).

That is likely the reason why the tests are currently failing. In your case, the module interacts with D-Bus using the corresponding Python package, but you will have to mock the calls to that library, otherwise your module will actually try to contact the sssd daemon, through D-Bus, during the CI run. Which is obviously going to fail.

Александр Габидуллин added 2 commits December 2, 2025 21:05
@ansibullbot
Copy link
Collaborator

The test ansible-test sanity --test pep8 [explain] failed with 31 errors:

plugins/modules/sssd_info.py:120:1: W293: blank line contains whitespace
plugins/modules/sssd_info.py:300:11: W292: no newline at end of file
tests/unit/plugins/modules/test_sssd_info.py:15:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:44: W292: no newline at end of file

The test ansible-test sanity --test shebang [explain] failed with 1 error:

tests/unit/plugins/modules/test_sssd_info.py:1:1: unexpected non-module shebang: b'#!/usr/bin/python'

The test ansible-test sanity --test pep8 [explain] failed with 31 errors:

plugins/modules/sssd_info.py:120:1: W293: blank line contains whitespace
plugins/modules/sssd_info.py:300:11: W292: no newline at end of file
tests/unit/plugins/modules/test_sssd_info.py:15:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:44: W292: no newline at end of file

The test ansible-test sanity --test shebang [explain] failed with 1 error:

tests/unit/plugins/modules/test_sssd_info.py:1:1: unexpected non-module shebang: b'#!/usr/bin/python'

The test ansible-test sanity --test pylint [explain] failed with 31 errors:

tests/unit/plugins/modules/test_sssd_info.py:9:0: unused-import: Unused import pytest
tests/unit/plugins/modules/test_sssd_info.py:10:0: unused-import: Unused MagicMock imported from unittest.mock
tests/unit/plugins/modules/test_sssd_info.py:15:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pep8 [explain] failed with 31 errors:

plugins/modules/sssd_info.py:120:1: W293: blank line contains whitespace
plugins/modules/sssd_info.py:300:11: W292: no newline at end of file
tests/unit/plugins/modules/test_sssd_info.py:15:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:44: W292: no newline at end of file

The test ansible-test sanity --test shebang [explain] failed with 1 error:

tests/unit/plugins/modules/test_sssd_info.py:1:1: unexpected non-module shebang: b'#!/usr/bin/python'

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

plugins/modules/sssd_info.py:114:0: unused-import: Unused import traceback
plugins/modules/sssd_info.py:116:0: unused-import: Unused missing_required_lib imported from ansible.module_utils.basic
plugins/modules/sssd_info.py:120:0: trailing-whitespace: Trailing whitespace
plugins/modules/sssd_info.py:300:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

plugins/modules/sssd_info.py:114:0: unused-import: Unused import traceback
plugins/modules/sssd_info.py:116:0: unused-import: Unused missing_required_lib imported from ansible.module_utils.basic
plugins/modules/sssd_info.py:120:0: trailing-whitespace: Trailing whitespace
plugins/modules/sssd_info.py:300:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pylint [explain] failed with 31 errors:

tests/unit/plugins/modules/test_sssd_info.py:9:0: unused-import: Unused import pytest
tests/unit/plugins/modules/test_sssd_info.py:10:0: unused-import: Unused MagicMock imported from unittest.mock
tests/unit/plugins/modules/test_sssd_info.py:15:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pep8 [explain] failed with 31 errors:

plugins/modules/sssd_info.py:120:1: W293: blank line contains whitespace
plugins/modules/sssd_info.py:300:11: W292: no newline at end of file
tests/unit/plugins/modules/test_sssd_info.py:15:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:1: W293: blank line contains whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:44: W292: no newline at end of file

The test ansible-test sanity --test shebang [explain] failed with 1 error:

tests/unit/plugins/modules/test_sssd_info.py:1:1: unexpected non-module shebang: b'#!/usr/bin/python'

The test ansible-test sanity --test pylint [explain] failed with 31 errors:

tests/unit/plugins/modules/test_sssd_info.py:9:0: unused-import: Unused import pytest
tests/unit/plugins/modules/test_sssd_info.py:10:0: unused-import: Unused MagicMock imported from unittest.mock
tests/unit/plugins/modules/test_sssd_info.py:15:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pylint [explain] failed with 31 errors:

tests/unit/plugins/modules/test_sssd_info.py:9:0: unused-import: Unused import pytest
tests/unit/plugins/modules/test_sssd_info.py:10:0: unused-import: Unused MagicMock imported from unittest.mock
tests/unit/plugins/modules/test_sssd_info.py:15:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:17:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:23:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:27:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:32:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:36:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:38:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:40:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:42:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:65:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:68:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:75:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:82:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:87:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:97:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:100:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:104:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:107:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:115:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:118:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:123:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:130:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:133:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:140:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:142:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:148:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:150:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:155:0: trailing-whitespace: Trailing whitespace
tests/unit/plugins/modules/test_sssd_info.py:156:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

plugins/modules/sssd_info.py:114:0: unused-import: Unused import traceback
plugins/modules/sssd_info.py:116:0: unused-import: Unused missing_required_lib imported from ansible.module_utils.basic
plugins/modules/sssd_info.py:120:0: trailing-whitespace: Trailing whitespace
plugins/modules/sssd_info.py:300:0: missing-final-newline: Final newline missing

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

plugins/modules/sssd_info.py:114:0: unused-import: Unused import traceback
plugins/modules/sssd_info.py:116:0: unused-import: Unused missing_required_lib imported from ansible.module_utils.basic
plugins/modules/sssd_info.py:120:0: trailing-whitespace: Trailing whitespace
plugins/modules/sssd_info.py:300:0: missing-final-newline: Final newline missing

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-12 Automatically create a backport for the stable-12 branch check-before-release PR will be looked at again shortly before release and merged if possible. module module needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor new_plugin New plugin plugins plugin (any type) tests tests unit tests/unit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants