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

Remove use of simplejson throughout code base #43548

Merged
merged 4 commits into from
Aug 10, 2018
Merged

Conversation

sivel
Copy link
Member

@sivel sivel commented Aug 1, 2018

SUMMARY

Remove use of simplejson throughout code base. Fixes #42761

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

many

ANSIBLE VERSION
2.7
ADDITIONAL INFORMATION

@sivel sivel requested a review from nitzmahone August 1, 2018 14:40
@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 core_review In order to be merged, this PR must follow the core review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) needs_triage Needs a first human triage before being processed. networking Network category support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Aug 1, 2018
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Aug 2, 2018
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 2, 2018
@sivel sivel requested a review from abadger August 6, 2018 14:50
# Version 1.5 released 2007-01-18 does not have the encoding parameter which we need
print('\n{"msg": "Error: Ansible requires the stdlib json or simplejson >= 1.6. Neither was found!", "failed": true}')
print('\n{"msg": "Error: ansible requires the stdlib json and was not found!", "failed": true}')
sys.exit(1)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not entirely sure what we want to do with these... The libs which override json are still present on pypi. But I bet nowadays they will break more than ansible so we don't have to worry about them. On the other hand, I would have thought that when I had to add the code that handled that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added back in the python-json checks.

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Aug 7, 2018
@abadger
Copy link
Contributor

abadger commented Aug 7, 2018

This looks good +1

@ansibot ansibot added shipit This PR is ready to be merged by Core and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 8, 2018
@sivel
Copy link
Member Author

sivel commented Aug 8, 2018

bot_skip

For > 50 files

@opendev-zuul
Copy link

opendev-zuul bot commented Aug 8, 2018

Build succeeded (third-party-check pipeline).

@sivel sivel merged commit c1c229c into ansible:devel Aug 10, 2018
@ansible ansible locked and limited conversation to collaborators Jul 22, 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. module This issue/PR relates to a module. needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) networking Network category shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove simplejson support for 2.7
5 participants