mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Add Devuan Support for ascii release - resolve 49615 (#49616)
* Add Devuan Support for ascii release - resolve 49615 * Devuan Ascii does not have the VERSION_ID in the /etc/os-release file, we need to set NA
This commit is contained in:
@@ -329,7 +329,7 @@ class DistributionFiles:
|
||||
debian_facts['distribution_release'] = release.groups()[0]
|
||||
elif 'Devuan' in data:
|
||||
debian_facts['distribution'] = 'Devuan'
|
||||
release = re.search(r"PRETTY_NAME=[^(]+ \(?([^)]+?)\)", data)
|
||||
release = re.search(r"PRETTY_NAME=\"?[^(\"]+ \(?([^) \"]+)\)?", data)
|
||||
if release:
|
||||
debian_facts['distribution_release'] = release.groups()[0]
|
||||
version = re.search(r"VERSION_ID=\"(.*)\"", data)
|
||||
|
||||
Reference in New Issue
Block a user