Skip to content

Commit

Permalink
Skip shard count test in check mode. (ansible#3329)
Browse files Browse the repository at this point in the history
The shard count is not available in check mode.
  • Loading branch information
mattclay committed Dec 8, 2016
1 parent 1689619 commit db0ac49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/extras/cloud/amazon/kinesis_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def create_stream(client, stream_name, number_of_shards=1, retention_period=None
stream_found, stream_msg, current_stream = (
find_stream(client, stream_name, check_mode=check_mode)
)
if stream_found:
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
Expand Down

0 comments on commit db0ac49

Please sign in to comment.