Skip to content

Commit

Permalink
Merge pull request #46 from chkp-shirango/master
Browse files Browse the repository at this point in the history
Fix domain modules documentation and version updating in runtime.yml file
  • Loading branch information
chkp-royl authored Oct 27, 2021
2 parents f384a0c + 622169b commit 5ba3c6f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
1 change: 1 addition & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requires_ansible: '>=2.9.10'
14 changes: 4 additions & 10 deletions plugins/modules/cp_mgmt_add_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
DOCUMENTATION = """
---
module: cp_mgmt_add_domain
short_description: Manages domain objects on Checkpoint over Web Services API
short_description: Create new object
description:
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
- Create new object
- All operations are performed over Web Services API.
version_added: "2.9"
author: "Or Soffer (@chkp-orso)"
Expand Down Expand Up @@ -103,11 +103,6 @@
description:
- Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
type: bool
tags:
description:
- Collection of tag identifiers. Note, The list of tags can not be modified in a single command together with the domain servers. To modify
tags, please use the separate 'set-domain' command, without providing the list of domain servers.
type: list
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
"""

Expand All @@ -123,8 +118,8 @@

RETURN = """
cp_mgmt_domain:
description: The checkpoint object created or updated.
returned: always, except when deleting the object.
description: The checkpoint add-domain output.
returned: always.
type: dict
"""

Expand Down Expand Up @@ -154,7 +149,6 @@ def main():
details_level=dict(type='str', choices=['uid', 'standard', 'full']),
ignore_warnings=dict(type='bool'),
ignore_errors=dict(type='bool'),
tags=dict(type='list')
)
argument_spec.update(checkpoint_argument_spec_for_commands)

Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/cp_mgmt_delete_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
DOCUMENTATION = """
---
module: cp_mgmt_delete_domain
short_description: Manages domain objects on Checkpoint over Web Services API
short_description: Delete existing object using object name or uid.
description:
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
- Delete existing object using object name or uid.
- All operations are performed over Web Services API.
version_added: "2.9"
author: "Or Soffer (@chkp-orso)"
Expand Down Expand Up @@ -65,8 +65,8 @@

RETURN = """
cp_mgmt_domain:
description: The checkpoint object created or updated.
returned: always, except when deleting the object.
description: The checkpoint delete-domain output.
returned: always.
type: dict
"""

Expand Down
9 changes: 4 additions & 5 deletions plugins/modules/cp_mgmt_set_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
DOCUMENTATION = """
---
module: cp_mgmt_set_domain
short_description: Manages domain objects on Checkpoint over Web Services API
short_description: Edit existing object using object name or uid.
description:
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
- Edit existing object using object name or uid.
- All operations are performed over Web Services API.
version_added: "2.9"
author: "Or Soffer (@chkp-orso)"
Expand Down Expand Up @@ -126,13 +126,12 @@
cp_mgmt_set_domain:
comments: This is domain1 comment
name: domain1
state: present
"""

RETURN = """
cp_mgmt_domain:
description: The checkpoint object created or updated.
returned: always, except when deleting the object.
description: The checkpoint set-domain output.
returned: always.
type: dict
"""

Expand Down

0 comments on commit 5ba3c6f

Please sign in to comment.