Skip to content

Commit bae7ed8

Browse files
supporting updat action and updating resources to netscaler version 56.x
Signed-off-by: Shiva Shankar Vaddepally <shivashankar.vaddepally@cloud.com>
1 parent 47383cd commit bae7ed8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4442
-567
lines changed

plugins/module_utils/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ def get_valid_desired_states(resource_name):
663663
desired_states.add("renamed")
664664
if "apply" in supported_operations:
665665
desired_states.add("applied")
666+
if "change" in supported_operations:
667+
desired_states.add("changed")
666668
return desired_states
667669

668670

plugins/module_utils/module_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,7 @@ def main(self):
11981198
"unset",
11991199
"renamed",
12001200
"applied",
1201+
"changed",
12011202
}:
12021203
state_action_map = {
12031204
"created": "create",
@@ -1207,6 +1208,7 @@ def main(self):
12071208
"unset": "unset",
12081209
"renamed": "rename",
12091210
"applied": "apply",
1211+
"changed": "update",
12101212
}
12111213
self.act_on_resource(
12121214
action=state_action_map[self.module.params["state"]]

0 commit comments

Comments
 (0)