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

missing value for idempotent in call to dnac_argument_spec #3

Closed
jandiorio opened this issue Jan 8, 2021 · 1 comment
Closed

missing value for idempotent in call to dnac_argument_spec #3

jandiorio opened this issue Jan 8, 2021 · 1 comment

Comments

@jandiorio
Copy link

The function for generating the arg_spec has a flag named idempotent which has a default value of False. This value appears to control which values are used for state such as [create, delete, update, query] vs [present, absent, query].

At the action plugin level, the value of state is used to control execution. When setting state in the arg_spec the call must pass idempotent=True for action plugins that are intended to be idempotent.

An example is the site.py plugin. the logic filters execution based on the idempotent states of [present, absent, query] but when getting the value doesn't provide idempotent=True so the values are limited to [create, delete, update, query].

It seems a flag indicating if the plugin is idempotent or not would work.

IDEMPOTENT=True

...
argument_spec.update(dict(state=dnac_argument_spec(idempotent=IDEMPOTENT).get("state")))
@racampos
Copy link
Contributor

Fixed in version 1.0.1. Thanks @jandiorio.

wastorga pushed a commit that referenced this issue Sep 1, 2023
…timise

Moving generic api's to library and optimising intent modules
bvargasre pushed a commit that referenced this issue Feb 5, 2024
syed-khadeerahmed pushed a commit to syed-khadeerahmed/dnacenter-ansible that referenced this issue Aug 7, 2024
…ccesspoint_update_feature_all_fields

Accesspoint update feature all fields
syed-khadeerahmed pushed a commit to syed-khadeerahmed/dnacenter-ansible that referenced this issue Aug 30, 2024
…and_role_workflow_feature

User and role workflow feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants