mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
cleanup tests
* use nose test generator * more comments * move facts import inside the skipped function, fix python3 warning
This commit is contained in:
@@ -282,6 +282,11 @@ class Facts(object):
|
||||
# platform.dist() is deprecated in 2.6
|
||||
# in 2.6 and newer, you should use platform.linux_distribution()
|
||||
def get_distribution_facts(self):
|
||||
"""
|
||||
Fills facts about the distribution name and version.
|
||||
|
||||
This is unit tested. Please extend the tests to cover all distributions if you have them available.
|
||||
"""
|
||||
|
||||
# A list with OS Family members
|
||||
OS_FAMILY = dict(
|
||||
|
||||
Reference in New Issue
Block a user