Skip to content

Commit

Permalink
Merge pull request #1140 from t-woerner/new_module_template_fixes
Browse files Browse the repository at this point in the history
new_module template fixes
  • Loading branch information
rjeffman authored Sep 13, 2023
2 parents de38e8f + 60593b7 commit 7cb5e48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions utils/templates/ipamodule+member.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ def main():
PARAMETER2=dict(required=False, type='list', elements='str',
default=None, aliases=["API_PARAMETER_NAME"]),
# action
action=dict(type="str", default="$name", type="str",
action=dict(type="str", default="$name",
choices=["member", "$name"]),
# state
state=dict(type="str", default="present", type="str",
state=dict(type="str", default="present",
choices=["present", "absent"]),
),
supports_check_mode=True,
Expand Down
2 changes: 1 addition & 1 deletion utils/templates/ipamodule.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def main():
PARAMETER2=dict(required=False, type='list', elements='str',
aliases=["API_PARAMETER_NAME"], default=None),
# state
state=dict(type="str", default="present", type="str",
state=dict(type="str", default="present",
choices=["present", "absent"]),
),
supports_check_mode=True,
Expand Down
2 changes: 1 addition & 1 deletion utils/templates/test_module_client_context.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

tasks:
- name: Include FreeIPA facts.
include_tasks: ../env_freeipa_facts.yml
ansible.builtin.include_tasks: ../env_freeipa_facts.yml

# Test will only be executed if host is not a server.
- name: Execute with server context in the client.
Expand Down

0 comments on commit 7cb5e48

Please sign in to comment.