Add support for distribution_major_version on NetBSD. (#15885)
This commit is contained in:
parent
8bf4aa97b0
commit
f6bcd0f9a1
1 changed files with 4 additions and 1 deletions
|
@ -670,7 +670,7 @@ class Distribution(object):
|
|||
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', 'DragonFly')
|
||||
systems_implemented = ('AIX', 'HP-UX', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS', 'DragonFly', 'NetBSD')
|
||||
|
||||
self.facts['distribution'] = self.system
|
||||
|
||||
|
@ -777,6 +777,9 @@ class Distribution(object):
|
|||
def get_distribution_DragonFly(self):
|
||||
pass
|
||||
|
||||
def get_distribution_NetBSD(self):
|
||||
self.facts['distribution_major_version'] = self.facts['distribution_release'].split('.')[0]
|
||||
|
||||
def get_distribution_Slackware(self, name, data, path):
|
||||
if 'Slackware' not in data:
|
||||
return False # TODO: remove
|
||||
|
|
Loading…
Reference in a new issue