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
f9da7cb1
Commit
f9da7cb1
authored
Mar 26, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove functions that are no longer used
parent
35d77d04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
lib/ansible/utils.py
+0
-22
No files found.
lib/ansible/utils.py
View file @
f9da7cb1
...
@@ -147,28 +147,6 @@ def host_report_msg(hostname, module_name, result, oneline):
...
@@ -147,28 +147,6 @@ def host_report_msg(hostname, module_name, result, oneline):
buf
=
regular_failure_msg
(
hostname
,
result
,
oneline
)
buf
=
regular_failure_msg
(
hostname
,
result
,
oneline
)
return
buf
return
buf
# FIXME: needed? ... may be able to eliminate many of these...
def
has_dark_hosts
(
results
):
''' are there any uncontactable hosts? '''
return
len
(
results
[
'dark'
]
.
keys
())
>
0
def
has_contacted_hosts
(
results
):
''' are there any contacted hosts? '''
return
len
(
results
[
'contacted'
]
.
keys
())
>
0
def
has_hosts
(
results
):
''' did ansible run against any hosts at all? '''
return
has_contacted_hosts
(
results
)
or
has_dark_hosts
(
results
)
def
contacted_hosts
(
results
):
''' what are the contactable hosts? '''
return
sorted
(
results
[
'contacted'
])
def
contacted_host_result
(
results
,
hostname
):
''' what are the results for a given host? '''
return
results
[
'contacted'
][
hostname
]
def
prepare_writeable_dir
(
tree
):
def
prepare_writeable_dir
(
tree
):
''' make sure a directory exists and is writeable '''
''' make sure a directory exists and is writeable '''
if
tree
!=
'/'
:
if
tree
!=
'/'
:
...
...
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