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
c881b1ac
Commit
c881b1ac
authored
9 years ago
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12407 from mgedmin/py3k
Python 3: basestring in play_context.py
parents
8acbc008
8243954d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/playbook/play_context.py
+3
-3
No files found.
lib/ansible/playbook/play_context.py
View file @
c881b1ac
...
@@ -25,7 +25,7 @@ import pipes
...
@@ -25,7 +25,7 @@ import pipes
import
random
import
random
import
re
import
re
from
six
import
iteritems
from
six
import
iteritems
,
string_types
from
ansible
import
constants
as
C
from
ansible
import
constants
as
C
from
ansible.errors
import
AnsibleError
from
ansible.errors
import
AnsibleError
...
@@ -250,7 +250,7 @@ class PlayContext(Base):
...
@@ -250,7 +250,7 @@ class PlayContext(Base):
if
hasattr
(
options
,
'tags'
):
if
hasattr
(
options
,
'tags'
):
if
isinstance
(
options
.
tags
,
list
):
if
isinstance
(
options
.
tags
,
list
):
self
.
only_tags
.
update
(
options
.
tags
)
self
.
only_tags
.
update
(
options
.
tags
)
elif
isinstance
(
options
.
tags
,
basestring
):
elif
isinstance
(
options
.
tags
,
string_types
):
self
.
only_tags
.
update
(
options
.
tags
.
split
(
','
))
self
.
only_tags
.
update
(
options
.
tags
.
split
(
','
))
if
len
(
self
.
only_tags
)
==
0
:
if
len
(
self
.
only_tags
)
==
0
:
...
@@ -259,7 +259,7 @@ class PlayContext(Base):
...
@@ -259,7 +259,7 @@ class PlayContext(Base):
if
hasattr
(
options
,
'skip_tags'
):
if
hasattr
(
options
,
'skip_tags'
):
if
isinstance
(
options
.
skip_tags
,
list
):
if
isinstance
(
options
.
skip_tags
,
list
):
self
.
skip_tags
.
update
(
options
.
skip_tags
)
self
.
skip_tags
.
update
(
options
.
skip_tags
)
elif
isinstance
(
options
.
skip_tags
,
basestring
):
elif
isinstance
(
options
.
skip_tags
,
string_types
):
self
.
skip_tags
.
update
(
options
.
skip_tags
.
split
(
','
))
self
.
skip_tags
.
update
(
options
.
skip_tags
.
split
(
','
))
def
set_task_and_variable_override
(
self
,
task
,
variables
):
def
set_task_and_variable_override
(
self
,
task
,
variables
):
...
...
This diff is collapsed.
Click to expand it.
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