diff --git a/lib/ansible/modules/cloud/amazon/dynamodb_table.py b/lib/ansible/modules/cloud/amazon/dynamodb_table.py index 929fc7a215..4e02dd879a 100644 --- a/lib/ansible/modules/cloud/amazon/dynamodb_table.py +++ b/lib/ansible/modules/cloud/amazon/dynamodb_table.py @@ -247,7 +247,14 @@ def create_or_update_dynamo_table(connection, module, boto3_dynamodb=None, boto3 # only tables which are active can be tagged wait_until_table_active(module, table, wait_for_active_timeout) account_id = get_account_id(boto3_sts) - boto3_dynamodb.tag_resource(ResourceArn='arn:aws:dynamodb:' + region + ':' + account_id + ':table/' + table_name, Tags=ansible_dict_to_boto3_tag_list(tags)) + boto3_dynamodb.tag_resource( + ResourceArn='arn:aws:dynamodb:' + + region + + ':' + + account_id + + ':table/' + + table_name, + Tags=ansible_dict_to_boto3_tag_list(tags)) result['tags'] = tags except BotoServerError: