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

added diff as new keyword #28581

Merged
merged 1 commit into from
Aug 24, 2017
Merged

added diff as new keyword #28581

merged 1 commit into from
Aug 24, 2017

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Aug 23, 2017

SUMMARY

allows to override diff config/cli options in play

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

core

ANSIBLE VERSION
2.4

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 c:playbook/base c:playbook/play_context feature_pull_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 Aug 23, 2017
@@ -242,11 +242,9 @@ class PlayContext(Base):
_verbosity = FieldAttribute(isa='int', default=0)
_only_tags = FieldAttribute(isa='set', default=set())
_skip_tags = FieldAttribute(isa='set', default=set())
_check_mode = FieldAttribute(isa='bool', default=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is being removed because it's redundant with the one in lib/ansible/playbook/base.py, but should the default be moved to that file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, was redundant and no, as we check for None in task, which means its 'not set' vs True/False which would override the config and cli options

@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Aug 23, 2017
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Aug 23, 2017
@bcoca bcoca removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Aug 23, 2017
added diff to fake options in ec2_vpc_nat_gateway test
@dagwieers
Copy link
Contributor

Can we get this merged ASAP ?

We need it for doing integration tests in the XML module, so the tests provide proper guidance to why a test failed.

@dagwieers
Copy link
Contributor

A leap of faith, I trust @bcoca !

@dagwieers dagwieers merged commit 725d4d4 into ansible:devel Aug 24, 2017
prasadkatti pushed a commit to prasadkatti/ansible that referenced this pull request Oct 1, 2017
added diff to fake options in ec2_vpc_nat_gateway test
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 5, 2018
fetzerch added a commit to fetzerch/ansible that referenced this pull request Mar 27, 2018
Tasks that deal with secrets may leak sensitive information when
running in Check Mode. This change updates the documentation explaining
that the diff can be deactivated on task level.

The feature was requested in ansible#14860 and got introduced in Ansible 2.4
with ansible#28581.
dharmabumstead pushed a commit that referenced this pull request Apr 5, 2018
* docs: Document disabling diff on task level

Tasks that deal with secrets may leak sensitive information when
running in Check Mode. This change updates the documentation explaining
that the diff can be deactivated on task level.

The feature was requested in #14860 and got introduced in Ansible 2.4
with #28581.

* Updated for clarity
nitzmahone pushed a commit that referenced this pull request Apr 18, 2018
* docs: Document disabling diff on task level

Tasks that deal with secrets may leak sensitive information when
running in Check Mode. This change updates the documentation explaining
that the diff can be deactivated on task level.

The feature was requested in #14860 and got introduced in Ansible 2.4
with #28581.

* Updated for clarity

(cherry picked from commit 9cca9a9)
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
* docs: Document disabling diff on task level

Tasks that deal with secrets may leak sensitive information when
running in Check Mode. This change updates the documentation explaining
that the diff can be deactivated on task level.

The feature was requested in ansible#14860 and got introduced in Ansible 2.4
with ansible#28581.

* Updated for clarity
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 c:playbook/base c:playbook/play_context feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants