Skip to content

Commit

Permalink
made changes to get_rds_method_attribute_name and more clarified chec…
Browse files Browse the repository at this point in the history
…k variable name
  • Loading branch information
taehopark32 committed Jul 10, 2023
1 parent e3f5d76 commit 1951ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/rds_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def get_rds_method_attribute_name(cluster):
method_name = "delete_db_cluster"
method_options_name = "get_delete_options"
elif state == "started":
if cluster and cluster["Status"] not in ["starting", "started"]:
if cluster and cluster["Status"] not in ["starting", "started", "available"]:
method_name = "start_db_cluster"
method_options_name = "get_modify_options"
elif state == "stopped":
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/rds_cluster_states/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@
amazon.aws.rds_cluster:
cluster_id: '{{ cluster_id }}'
state: started
register: started_cluster
register: check_started_cluster
check_mode: yes

- assert:
that:
- not started_cluster.changed
- not check_started_cluster.changed

- name: Start db clusters
amazon.aws.rds_cluster:
Expand Down

0 comments on commit 1951ce8

Please sign in to comment.