Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
d996a2c2
Commit
d996a2c2
authored
Apr 21, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ported fix from v1 to v2 on oracle linux family detection
parent
501f372d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
v2/ansible/module_utils/facts.py
+2
-2
No files found.
v2/ansible/module_utils/facts.py
View file @
d996a2c2
...
@@ -87,7 +87,7 @@ class Facts(object):
...
@@ -87,7 +87,7 @@ class Facts(object):
_I386RE
=
re
.
compile
(
r'i([3456]86|86pc)'
)
_I386RE
=
re
.
compile
(
r'i([3456]86|86pc)'
)
# For the most part, we assume that platform.dist() will tell the truth.
# For the most part, we assume that platform.dist() will tell the truth.
# This is the fallback to handle unknowns or exceptions
# This is the fallback to handle unknowns or exceptions
OSDIST_LIST
=
(
(
'/etc/oracle-release'
,
'Oracle
Linux'
),
OSDIST_LIST
=
(
(
'/etc/oracle-release'
,
'OracleLinux'
),
(
'/etc/redhat-release'
,
'RedHat'
),
(
'/etc/redhat-release'
,
'RedHat'
),
(
'/etc/vmware-release'
,
'VMwareESX'
),
(
'/etc/vmware-release'
,
'VMwareESX'
),
(
'/etc/openwrt_release'
,
'OpenWrt'
),
(
'/etc/openwrt_release'
,
'OpenWrt'
),
...
@@ -294,7 +294,7 @@ class Facts(object):
...
@@ -294,7 +294,7 @@ class Facts(object):
# Once we determine the value is one of these distros
# Once we determine the value is one of these distros
# we trust the values are always correct
# we trust the values are always correct
break
break
elif
name
==
'Oracle
Linux'
:
elif
name
==
'OracleLinux'
:
data
=
get_file_content
(
path
)
data
=
get_file_content
(
path
)
if
'Oracle Linux'
in
data
:
if
'Oracle Linux'
in
data
:
self
.
facts
[
'distribution'
]
=
name
self
.
facts
[
'distribution'
]
=
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment