Skip to content

Commit 622169b

Browse files
committed
Fix domain modules documentation and version updating in runtime.yml file
1 parent 7014020 commit 622169b

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

meta/runtime.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requires_ansible: '>=2.9.10'

plugins/modules/cp_mgmt_add_domain.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
DOCUMENTATION = """
2929
---
3030
module: cp_mgmt_add_domain
31-
short_description: Manages domain objects on Checkpoint over Web Services API
31+
short_description: Create new object
3232
description:
33-
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
33+
- Create new object
3434
- All operations are performed over Web Services API.
3535
version_added: "2.9"
3636
author: "Or Soffer (@chkp-orso)"
@@ -103,11 +103,6 @@
103103
description:
104104
- 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.
105105
type: bool
106-
tags:
107-
description:
108-
- Collection of tag identifiers. Note, The list of tags can not be modified in a single command together with the domain servers. To modify
109-
tags, please use the separate 'set-domain' command, without providing the list of domain servers.
110-
type: list
111106
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
112107
"""
113108

@@ -123,8 +118,8 @@
123118

124119
RETURN = """
125120
cp_mgmt_domain:
126-
description: The checkpoint object created or updated.
127-
returned: always, except when deleting the object.
121+
description: The checkpoint add-domain output.
122+
returned: always.
128123
type: dict
129124
"""
130125

@@ -154,7 +149,6 @@ def main():
154149
details_level=dict(type='str', choices=['uid', 'standard', 'full']),
155150
ignore_warnings=dict(type='bool'),
156151
ignore_errors=dict(type='bool'),
157-
tags=dict(type='list')
158152
)
159153
argument_spec.update(checkpoint_argument_spec_for_commands)
160154

plugins/modules/cp_mgmt_delete_domain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
DOCUMENTATION = """
2929
---
3030
module: cp_mgmt_delete_domain
31-
short_description: Manages domain objects on Checkpoint over Web Services API
31+
short_description: Delete existing object using object name or uid.
3232
description:
33-
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
33+
- Delete existing object using object name or uid.
3434
- All operations are performed over Web Services API.
3535
version_added: "2.9"
3636
author: "Or Soffer (@chkp-orso)"
@@ -65,8 +65,8 @@
6565

6666
RETURN = """
6767
cp_mgmt_domain:
68-
description: The checkpoint object created or updated.
69-
returned: always, except when deleting the object.
68+
description: The checkpoint delete-domain output.
69+
returned: always.
7070
type: dict
7171
"""
7272

plugins/modules/cp_mgmt_set_domain.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
DOCUMENTATION = """
2929
---
3030
module: cp_mgmt_set_domain
31-
short_description: Manages domain objects on Checkpoint over Web Services API
31+
short_description: Edit existing object using object name or uid.
3232
description:
33-
- Manages domain objects on Checkpoint devices including creating, updating and removing objects.
33+
- Edit existing object using object name or uid.
3434
- All operations are performed over Web Services API.
3535
version_added: "2.9"
3636
author: "Or Soffer (@chkp-orso)"
@@ -126,13 +126,12 @@
126126
cp_mgmt_set_domain:
127127
comments: This is domain1 comment
128128
name: domain1
129-
state: present
130129
"""
131130

132131
RETURN = """
133132
cp_mgmt_domain:
134-
description: The checkpoint object created or updated.
135-
returned: always, except when deleting the object.
133+
description: The checkpoint set-domain output.
134+
returned: always.
136135
type: dict
137136
"""
138137

0 commit comments

Comments
 (0)