-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
templar: ensure that exceptions are handled, fix 'AttributeError' #48792
Merged
bcoca
merged 2 commits into
ansible:devel
from
pilou-:fix_object_has_no_attribute_message
Nov 29, 2018
Merged
templar: ensure that exceptions are handled, fix 'AttributeError' #48792
bcoca
merged 2 commits into
ansible:devel
from
pilou-:fix_object_has_no_attribute_message
Nov 29, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pilou-
changed the title
templar: ensure that exceptions are handled, fix 'AttributeError'
WIP: templar: ensure that exceptions are handled, fix 'AttributeError'
Nov 16, 2018
Hi @pilou-, thank you for submitting this pull-request! |
ansibot
added
WIP
This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
needs_triage
Needs a first human triage before being processed.
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
traceback
This issue/PR includes a traceback.
small_patch
labels
Nov 16, 2018
bcoca
requested changes
Nov 16, 2018
'message' attribute is deprecated since Python 2.6 and not available with Python 3. Simple reproducer: - hosts: localhost vars: not_json: "{{ 'test str' | from_json }}" tasks: - command: "echo {{ not_json }}"
pilou-
force-pushed
the
fix_object_has_no_attribute_message
branch
from
November 17, 2018 00:23
7f34cd1
to
84c3ff8
Compare
pilou-
changed the title
WIP: templar: ensure that exceptions are handled, fix 'AttributeError'
templar: ensure that exceptions are handled, fix 'AttributeError'
Nov 17, 2018
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
WIP
This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Nov 17, 2018
bcoca
removed
the
needs_triage
Needs a first human triage before being processed.
label
Nov 20, 2018
ansibot
added
the
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
label
Nov 26, 2018
bcoca
approved these changes
Nov 27, 2018
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Nov 27, 2018
gundalow
approved these changes
Nov 29, 2018
webknjaz
approved these changes
Nov 29, 2018
@pilou- You OK to backport + changelog this? |
pilou-
added a commit
to pilou-/ansible
that referenced
this pull request
Nov 30, 2018
…sible#48792) * templar: ensure that exceptions are handled * Fix AttributeError: object has no attribute 'message' 'message' attribute is deprecated since Python 2.6 and not available with Python 3. Simple reproducer: - hosts: localhost vars: not_json: "{{ 'test str' | from_json }}" tasks: - command: "echo {{ not_json }}" (cherry picked from commit 62c0503)
@gundalow: backport PR created. |
abadger
pushed a commit
that referenced
this pull request
Dec 4, 2018
…8792) * templar: ensure that exceptions are handled * Fix AttributeError: object has no attribute 'message' 'message' attribute is deprecated since Python 2.6 and not available with Python 3. Simple reproducer: - hosts: localhost vars: not_json: "{{ 'test str' | from_json }}" tasks: - command: "echo {{ not_json }}" (cherry picked from commit 62c0503)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
python3
small_patch
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
traceback
This issue/PR includes a traceback.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fix
AttributeError
:Unit test provided.
ISSUE TYPE
COMPONENT NAME
lib/ansible/template/vars.py
ADDITIONAL INFORMATION
Simple reproducer: