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

Fix distribution fact on DragonFly #17619

Merged
merged 1 commit into from
Sep 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/ansible/module_utils/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def get_distribution_facts(self):
self.facts['distribution'] = self.system
self.facts['distribution_release'] = platform.release()
self.facts['distribution_version'] = platform.version()
systems_implemented = ('AIX', 'HP-UX', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS')
systems_implemented = ('AIX', 'HP-UX', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS', 'DragonFly')

self.facts['distribution'] = self.system

Expand Down Expand Up @@ -777,6 +777,9 @@ def get_distribution_OpenBSD(self):
else:
self.facts['distribution_version'] = 'release'

def get_distribution_DragonFly(self):
pass

def get_distribution_Slackware(self, name, data, path):
if 'Slackware' not in data:
return False # TODO: remove
Expand Down