Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when cond is used on meta tasks that don't support them #41126

Merged
merged 1 commit into from
Jun 6, 2018

Conversation

mkrizek
Copy link
Contributor

@mkrizek mkrizek commented Jun 5, 2018

SUMMARY

Fixes #27565

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

lib/ansible/plugins/strategy/init.py

ANSIBLE VERSION
devel
ADDITIONAL INFORMATION

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 5, 2018
@mkrizek mkrizek added this to IN PROGRESS in CEM Jun 5, 2018
@Akasurde Akasurde removed the needs_triage Needs a first human triage before being processed. label Jun 5, 2018
@bcoca
Copy link
Member

bcoca commented Jun 5, 2018

we shoudl actually warn on all keywords that are ignored #27897, but this is a good start

@mkrizek mkrizek merged commit 5f7ffd3 into ansible:devel Jun 6, 2018
@mkrizek mkrizek deleted the meta-warn-on-cond branch June 6, 2018 07:54
@mkrizek mkrizek moved this from IN PROGRESS to DONE in CEM Jun 6, 2018
jacum pushed a commit to jacum/ansible that referenced this pull request Jun 26, 2018
mkrizek added a commit to mkrizek/ansible that referenced this pull request Oct 9, 2018
mkrizek added a commit to mkrizek/ansible that referenced this pull request Oct 9, 2018
mkrizek added a commit to mkrizek/ansible that referenced this pull request Nov 6, 2018
mattclay pushed a commit that referenced this pull request Nov 6, 2018
* 2.6: Backport _cond_not_supported_warn() (#41126)

(Partially cherry picked from commit 5f7ffd3)

* Fix changelog
openstack-gerrit pushed a commit to openstack/kolla-ansible that referenced this pull request May 14, 2019
The flush_handlers clause doesn't honour conditional clauses.
Instead, it prints a warning and runs anyway:
[WARNING]: flush_handlers task does not support when conditional

See: ansible/ansible#41126

TrivialFix

Change-Id: Iaf70c2e932ae6dfb723bdb2ba658acdbfe74ebe2
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request May 14, 2019
* Update kolla-ansible from branch 'master'
  - Merge "Ansible flush_handlers ignores conditional clauses"
  - Ansible flush_handlers ignores conditional clauses
    
    The flush_handlers clause doesn't honour conditional clauses.
    Instead, it prints a warning and runs anyway:
    [WARNING]: flush_handlers task does not support when conditional
    
    See: ansible/ansible#41126
    
    TrivialFix
    
    Change-Id: Iaf70c2e932ae6dfb723bdb2ba658acdbfe74ebe2
@ansible ansible locked and limited conversation to collaborators Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
No open projects
CEM
DONE
Development

Successfully merging this pull request may close these issues.

meta tasks do not appear to respect conditionals
4 participants