mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07: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:
parent
31c1bdd6a8
commit
774a667591
3 changed files with 23 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue