mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Fixes from pyflakes
This commit is contained in:
parent
fc3b1cf973
commit
f074f1c4c4
3 changed files with 3 additions and 6 deletions
|
@ -25,7 +25,6 @@ from optparse import OptionParser
|
||||||
import ansible.playbook
|
import ansible.playbook
|
||||||
import ansible.constants as C
|
import ansible.constants as C
|
||||||
from ansible import errors
|
from ansible import errors
|
||||||
from ansible import utils
|
|
||||||
from ansible import callbacks
|
from ansible import callbacks
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
@ -82,7 +81,7 @@ def main(args):
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
|
|
||||||
results = pb.run()
|
pb.run()
|
||||||
hosts = sorted(pb.stats.processed.keys())
|
hosts = sorted(pb.stats.processed.keys())
|
||||||
print "\n\nPLAY RECAP **********************\n\n"
|
print "\n\nPLAY RECAP **********************\n\n"
|
||||||
for h in hosts:
|
for h in hosts:
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
import sys
|
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
|
@ -165,7 +165,6 @@ class Runner(object):
|
||||||
if not os.path.exists(host_list):
|
if not os.path.exists(host_list):
|
||||||
raise errors.AnsibleFileNotFound("inventory file not found: %s" % host_list)
|
raise errors.AnsibleFileNotFound("inventory file not found: %s" % host_list)
|
||||||
|
|
||||||
rc = None
|
|
||||||
if not os.access(host_list, os.X_OK):
|
if not os.access(host_list, os.X_OK):
|
||||||
return Runner.parse_hosts_from_regular_file(host_list)
|
return Runner.parse_hosts_from_regular_file(host_list)
|
||||||
else:
|
else:
|
||||||
|
@ -437,7 +436,7 @@ class Runner(object):
|
||||||
if ok:
|
if ok:
|
||||||
return self._chain_file_module(conn, tmp, data, options, executed)
|
return self._chain_file_module(conn, tmp, data, options, executed)
|
||||||
else:
|
else:
|
||||||
return results1
|
return (host, ok, data)
|
||||||
|
|
||||||
# *****************************************************
|
# *****************************************************
|
||||||
|
|
||||||
|
@ -488,7 +487,7 @@ class Runner(object):
|
||||||
if ok:
|
if ok:
|
||||||
return self._chain_file_module(conn, tmp, data, options, executed)
|
return self._chain_file_module(conn, tmp, data, options, executed)
|
||||||
else:
|
else:
|
||||||
return results1
|
return (host, ok, data)
|
||||||
|
|
||||||
# *****************************************************
|
# *****************************************************
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue