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
a3371323
Commit
a3371323
authored
Jul 20, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #645 from sfromm/issue643
Skip get_ipv6_facts if socket.has_ipv6 is false
parents
6e84374c
2a0dfba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
library/setup
+2
-0
No files found.
library/setup
View file @
a3371323
...
@@ -482,6 +482,8 @@ class LinuxNetwork(Network):
...
@@ -482,6 +482,8 @@ class LinuxNetwork(Network):
self
.
facts
[
iface
][
'ipv4'
][
'network'
]
=
socket
.
inet_ntoa
(
struct
.
pack
(
"!L"
,
ip
&
mask
))
self
.
facts
[
iface
][
'ipv4'
][
'network'
]
=
socket
.
inet_ntoa
(
struct
.
pack
(
"!L"
,
ip
&
mask
))
def
get_ipv6_facts
(
self
):
def
get_ipv6_facts
(
self
):
if
not
socket
.
has_ipv6
:
return
data
=
get_file_content
(
'/proc/net/if_inet6'
)
data
=
get_file_content
(
'/proc/net/if_inet6'
)
if
data
is
None
:
if
data
is
None
:
return
return
...
...
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