Fix uninitialized distribution fact on FreeBSD (#15842)

Initialize facts['distribution'] with self.system so that this fact does
not remain uninitialized on systems_platform_working platforms (FreeBSD,
OpenBSD).

Fixes #15841
This commit is contained in:
Thomas Quinot 2016-05-13 22:57:17 +02:00 committed by Brian Coca
parent 043e910652
commit a2c905c32e

View file

@ -660,6 +660,7 @@ class Distribution(object):
# The platform module provides information about the running
# system/distribution. Use this as a baseline and fix buggy systems
# afterwards
self.facts['distribution'] = self.system
self.facts['distribution_release'] = platform.release()
self.facts['distribution_version'] = platform.version()