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
03d7c8d7
Commit
03d7c8d7
authored
Jul 20, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed new HPUX networking facts
parent
80eb7a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/module_utils/facts.py
+3
-3
No files found.
lib/ansible/module_utils/facts.py
View file @
03d7c8d7
...
...
@@ -2147,7 +2147,7 @@ class GenericBsdIfconfigNetwork(Network):
for
item
in
ifinfo
[
ip_type
][
0
]
.
keys
():
defaults
[
item
]
=
ifinfo
[
ip_type
][
0
][
item
]
class
HPUX
(
Network
):
class
HPUX
Network
(
Network
):
"""
HP-UX-specifig subclass of Network. Defines networking facts:
- default_interface
...
...
@@ -2171,7 +2171,7 @@ class HPUX(Network):
return
self
.
facts
def
get_default_interfaces
(
self
):
rc
,
out
,
err
=
module
.
run_command
(
"/usr/bin/netstat -nr"
,
use_unsafe_shell
=
True
)
rc
,
out
,
err
=
module
.
run_command
(
"/usr/bin/netstat -nr"
)
lines
=
out
.
split
(
'
\n
'
)
for
line
in
lines
:
words
=
line
.
split
()
...
...
@@ -2182,7 +2182,7 @@ class HPUX(Network):
def
get_interfaces_info
(
self
):
interfaces
=
{}
rc
,
out
,
err
=
module
.
run_command
(
"/usr/bin/netstat -ni"
,
use_unsafe_shell
=
True
)
rc
,
out
,
err
=
module
.
run_command
(
"/usr/bin/netstat -ni"
)
lines
=
out
.
split
(
'
\n
'
)
for
line
in
lines
:
words
=
line
.
split
()
...
...
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