Giter Club home page Giter Club logo

Comments (9)

ansibot avatar ansibot commented on September 24, 2024

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the component bot command.

from ansible.

sivel avatar sivel commented on September 24, 2024

Duplicate of #83268 #78889

from ansible.

oetiker avatar oetiker commented on September 24, 2024

Duplicate of #83268 #78889

hmmm not sure.

This is about default values for keys within dicts. Take a look at the sample config above. Looking at the issues you cited they seem to have different data structures ...

from ansible.

sivel avatar sivel commented on September 24, 2024

default is just for documentation and the existing type validators only guarantee that it can be converted to the type, not that it is actually that type.

... because of complexities with variable precedence. At the moment, we could return the validated and coerced variables in an ansible_facts key from the validate_argument_spec action plugin, but this would break the assumptions of variable precedence. At this time we do not have plans on implementing a feature that would allow re-injecting the validated and coerced variables.

from ansible.

flowerysong avatar flowerysong commented on September 24, 2024

Duplicate of #80298 #80604

from ansible.

oetiker avatar oetiker commented on September 24, 2024

:-( ok

from ansible.

oetiker avatar oetiker commented on September 24, 2024

What seems odd, is that when you are setting required: true and default: xxx then ansible will complain, that a default value and required would not go together. If default is for documentation only, then this error makes little sense.

from ansible.

bcoca avatar bcoca commented on September 24, 2024

closing as per above

from ansible.

bcoca avatar bcoca commented on September 24, 2024

the error is correct, the documentation should not specify a default if the argument is required, it is not only code consistency we check for.

from ansible.

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.