mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Merge pull request #15088 from robinro/patch-3
break after parsing SuSE-release in facts.py
This commit is contained in:
@@ -484,6 +484,7 @@ class Facts(object):
|
|||||||
if release:
|
if release:
|
||||||
self.facts['distribution_release'] = release.group(1)
|
self.facts['distribution_release'] = release.group(1)
|
||||||
self.facts['distribution_version'] = self.facts['distribution_version'] + '.' + release.group(1)
|
self.facts['distribution_version'] = self.facts['distribution_version'] + '.' + release.group(1)
|
||||||
|
break
|
||||||
elif name == 'Debian':
|
elif name == 'Debian':
|
||||||
data = get_file_content(path)
|
data = get_file_content(path)
|
||||||
if 'Debian' in data or 'Raspbian' in data:
|
if 'Debian' in data or 'Raspbian' in data:
|
||||||
|
|||||||
Reference in New Issue
Block a user