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
6577ff5f
Commit
6577ff5f
authored
Mar 10, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tags from handlers to tag availability calculation
parent
4993cb57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
lib/ansible/playbook/play.py
+6
-1
No files found.
lib/ansible/playbook/play.py
View file @
6577ff5f
...
...
@@ -579,6 +579,7 @@ class Play(object):
for
x
in
results
:
if
self
.
tags
is
not
None
:
self
.
tags
=
list
(
set
(
self
.
tags
)
.
union
(
set
(
x
.
tags
)))
x
.
tags
.
extend
(
self
.
tags
)
return
results
...
...
@@ -686,11 +687,15 @@ class Play(object):
unmatched_tags: tags that were found within the current play but do not match
any provided by the user '''
# gather all the tags in all the tasks into one list
# gather all the tags in all the tasks and handlers into one list
# FIXME: isn't this in self.tags already?
all_tags
=
[]
for
task
in
self
.
_tasks
:
if
not
task
.
meta
:
all_tags
.
extend
(
task
.
tags
)
for
handler
in
self
.
_handlers
:
all_tags
.
extend
(
handler
.
tags
)
# compare the lists of tags using sets and return the matched and unmatched
all_tags_set
=
set
(
all_tags
)
...
...
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