fix: Don't fail if updating Kinesis stream Shard count; We support this! (#54530)
This added support for increasing shard count: https://github.com/ansible/ansible/pull/24805 But the conditional to fail if you have specified a shard count other than the current shard count was still left in. This removes that conditional since it's no longer needed and prevents you from actually updating things!
This commit is contained in:
parent
b92281fe70
commit
684b749e47
1 changed files with 0 additions and 5 deletions
|
@ -1030,11 +1030,6 @@ def create_stream(client, stream_name, number_of_shards=1, retention_period=None
|
|||
)
|
||||
)
|
||||
|
||||
if stream_found and not check_mode:
|
||||
if current_stream['ShardsCount'] != number_of_shards:
|
||||
err_msg = 'Can not change the number of shards in a Kinesis Stream'
|
||||
return success, changed, err_msg, results
|
||||
|
||||
if stream_found and current_stream.get('StreamStatus') != 'DELETING':
|
||||
success, changed, err_msg = update(
|
||||
client, current_stream, stream_name, number_of_shards,
|
||||
|
|
Loading…
Reference in a new issue