Skip to content

Commit 0c89b8f

Browse files
Merge branch 'main' into dependabot/github_actions/ossf/scorecard-action-2.4.0
2 parents a434193 + 1d7c258 commit 0c89b8f

36 files changed

+1708
-1201
lines changed

plugins/module_utils/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ def get_valid_desired_states(resource_name):
665665
desired_states.add("applied")
666666
if "reboot" in supported_operations:
667667
desired_states.add("rebooted")
668+
if "change" in supported_operations:
669+
desired_states.add("changed")
668670
return desired_states
669671

670672

plugins/module_utils/module_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ def main(self):
11991199
"renamed",
12001200
"applied",
12011201
"rebooted",
1202+
"changed",
12021203
}:
12031204
state_action_map = {
12041205
"created": "create",
@@ -1209,6 +1210,7 @@ def main(self):
12091210
"renamed": "rename",
12101211
"applied": "apply",
12111212
"rebooted": "reboot",
1213+
"changed": "update",
12121214
}
12131215
self.act_on_resource(
12141216
action=state_action_map[self.module.params["state"]]

0 commit comments

Comments
 (0)