mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Fix dynamodb pep8 issues (#23032)
This commit is contained in:
parent
1ea1becf23
commit
6fa3cb55e1
1 changed files with 8 additions and 1 deletions
|
@ -247,7 +247,14 @@ def create_or_update_dynamo_table(connection, module, boto3_dynamodb=None, boto3
|
||||||
# only tables which are active can be tagged
|
# only tables which are active can be tagged
|
||||||
wait_until_table_active(module, table, wait_for_active_timeout)
|
wait_until_table_active(module, table, wait_for_active_timeout)
|
||||||
account_id = get_account_id(boto3_sts)
|
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
|
result['tags'] = tags
|
||||||
|
|
||||||
except BotoServerError:
|
except BotoServerError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue