Skip to content

Commit c427212

Browse files
sajaganalhercot
authored andcommitted
[ignore] Changed the suppress_previous attribute description in the nd_rest module
1 parent 3c16e66 commit c427212

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugins/modules/nd_rest.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,11 @@
5050
aliases: [ config_file ]
5151
suppress_previous:
5252
description:
53-
- If enabled, a GET call to check previous object state will not be sent before a PUT, PATCH and DELETE update to ND.
53+
- When enabled the previous state of the object will not be checked if the O(method) used is PUT, PATCH or DELETE.
5454
- This causes the previous return value to be empty.
55-
- The previous state of the object will not be checked and PUT, PATCH and DELETE update calls to ND will contain all properties specified in the task.
56-
- Certain ND API endpoints do not support the GET method for querying the current status of an object before updating or deleting it.
57-
- Use O(suppress_previous=true) to avoid making unsupported GET requests to such ND API endpoints.
5855
type: bool
5956
aliases: [ no_previous, ignore_previous ]
60-
57+
default: false
6158
extends_documentation_fragment:
6259
- cisco.nd.modules
6360
- cisco.nd.check_mode
@@ -222,7 +219,7 @@ def main():
222219
),
223220
content=dict(type="raw", aliases=["payload"]),
224221
file_path=dict(type="path", aliases=["config_file"]),
225-
suppress_previous=dict(type="bool", aliases=["no_previous", "ignore_previous"]),
222+
suppress_previous=dict(type="bool", default=False, aliases=["no_previous", "ignore_previous"]),
226223
)
227224

228225
module = AnsibleModule(

0 commit comments

Comments
 (0)