Giter VIP home page Giter VIP logo

Comments (2)

StephenSorriaux avatar StephenSorriaux commented on August 15, 2024

Hi @Transrian,

PRs are always welcomed! :)

I agree with you that this is not ideal. As far as I know, I noticed the change in the key name while updating the Ansible version used in our tests and just thought this was due to this Ansible update, without really checking it. If you have a solution in mind, we would really like to see it and, since exit_json() just takes some kwargs as arguments, maybe we can keep the current results key for some versions while also providing the new one.

from ansible-kafka-admin.

Transrian avatar Transrian commented on August 15, 2024

Just found the culprit code for the ansible update: ansible/blob/devel/lib/ansible/plugins/action/init.py, introduced here

At first read, the reason:

results is used internally to handle loops, so your module should never return this key

I guess we should avoid this output name then (even if issue have been mitigated by their fix)

If you have a solution in mind, we would really like to see it and, since exit_json() just takes some kwargs as arguments, maybe we can keep the current results key for some versions while also providing the new one.

For now, while keeping the two version: results and a potentially new one, except by checking Ansible version (and compared it to when the patch was introduced, I don't see a good solution)

Some others library just changed their variable name to a new one, like here, to mitigate the issue

from ansible-kafka-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.