mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fixes from pyflakes
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
#######################################################
|
||||
|
||||
import sys
|
||||
import utils
|
||||
|
||||
#######################################################
|
||||
|
||||
@@ -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)
|
||||
|
||||
# *****************************************************
|
||||
|
||||
|
||||
Reference in New Issue
Block a user