Update RDS snapshot info to use DBClusterIdentifier (#64253)
This commit is contained in:
parent
d6a51807cd
commit
67fd17bee4
1 changed files with 2 additions and 2 deletions
|
@ -327,13 +327,13 @@ def common_snapshot_info(module, conn, method, prefix, params):
|
||||||
def cluster_snapshot_info(module, conn):
|
def cluster_snapshot_info(module, conn):
|
||||||
snapshot_name = module.params.get('db_cluster_snapshot_identifier')
|
snapshot_name = module.params.get('db_cluster_snapshot_identifier')
|
||||||
snapshot_type = module.params.get('snapshot_type')
|
snapshot_type = module.params.get('snapshot_type')
|
||||||
instance_name = module.params.get('db_cluster_instance_identifier')
|
instance_name = module.params.get('db_cluster_identifier')
|
||||||
|
|
||||||
params = dict()
|
params = dict()
|
||||||
if snapshot_name:
|
if snapshot_name:
|
||||||
params['DBClusterSnapshotIdentifier'] = snapshot_name
|
params['DBClusterSnapshotIdentifier'] = snapshot_name
|
||||||
if instance_name:
|
if instance_name:
|
||||||
params['DBClusterInstanceIdentifier'] = instance_name
|
params['DBClusterIdentifier'] = instance_name
|
||||||
if snapshot_type:
|
if snapshot_type:
|
||||||
params['SnapshotType'] = snapshot_type
|
params['SnapshotType'] = snapshot_type
|
||||||
if snapshot_type == 'public':
|
if snapshot_type == 'public':
|
||||||
|
|
Loading…
Reference in a new issue