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
f074f1c4
Commit
f074f1c4
authored
Mar 26, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes from pyflakes
parent
fc3b1cf9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
bin/ansible-playbook
+1
-2
lib/ansible/callbacks.py
+0
-1
lib/ansible/runner.py
+2
-3
No files found.
bin/ansible-playbook
View file @
f074f1c4
...
...
@@ -25,7 +25,6 @@ from optparse import OptionParser
import
ansible.playbook
import
ansible.constants
as
C
from
ansible
import
errors
from
ansible
import
utils
from
ansible
import
callbacks
def
main
(
args
):
...
...
@@ -82,7 +81,7 @@ def main(args):
)
try
:
results
=
pb
.
run
()
pb
.
run
()
hosts
=
sorted
(
pb
.
stats
.
processed
.
keys
())
print
"
\n\n
PLAY RECAP **********************
\n\n
"
for
h
in
hosts
:
...
...
lib/ansible/callbacks.py
View file @
f074f1c4
...
...
@@ -18,7 +18,6 @@
#######################################################
import
sys
import
utils
#######################################################
...
...
lib/ansible/runner.py
View file @
f074f1c4
...
...
@@ -165,7 +165,6 @@ class Runner(object):
if
not
os
.
path
.
exists
(
host_list
):
raise
errors
.
AnsibleFileNotFound
(
"inventory file not found:
%
s"
%
host_list
)
rc
=
None
if
not
os
.
access
(
host_list
,
os
.
X_OK
):
return
Runner
.
parse_hosts_from_regular_file
(
host_list
)
else
:
...
...
@@ -437,7 +436,7 @@ class Runner(object):
if
ok
:
return
self
.
_chain_file_module
(
conn
,
tmp
,
data
,
options
,
executed
)
else
:
return
results1
return
(
host
,
ok
,
data
)
# *****************************************************
...
...
@@ -488,7 +487,7 @@ class Runner(object):
if
ok
:
return
self
.
_chain_file_module
(
conn
,
tmp
,
data
,
options
,
executed
)
else
:
return
results1
return
(
host
,
ok
,
data
)
# *****************************************************
...
...
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