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
86566e69
Commit
86566e69
authored
Sep 21, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12447 from mgedmin/py3k
Python 3: there is no 'basestring'
parents
8769f03c
9cdb6eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/ansible/plugins/action/__init__.py
+5
-4
No files found.
lib/ansible/plugins/action/__init__.py
View file @
86566e69
...
...
@@ -19,16 +19,17 @@
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
six.moves
import
StringIO
import
base64
import
json
import
os
import
random
import
stat
import
sys
import
tempfile
import
time
from
six
import
string_types
from
six.moves
import
StringIO
from
ansible
import
constants
as
C
from
ansible.errors
import
AnsibleError
,
AnsibleConnectionFailure
from
ansible.executor.module_common
import
modify_module
...
...
@@ -463,12 +464,12 @@ class ActionBase:
rc
,
stdin
,
stdout
,
stderr
=
self
.
_connection
.
exec_command
(
cmd
,
tmp
,
in_data
=
in_data
,
sudoable
=
sudoable
)
self
.
_display
.
debug
(
"command execution done"
)
if
not
isinstance
(
stdout
,
basestring
):
if
not
isinstance
(
stdout
,
string_types
):
out
=
''
.
join
(
stdout
.
readlines
())
else
:
out
=
stdout
if
not
isinstance
(
stderr
,
basestring
):
if
not
isinstance
(
stderr
,
string_types
):
err
=
''
.
join
(
stderr
.
readlines
())
else
:
err
=
stderr
...
...
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