From 3ac92735077284394d336e1e72b653bede75f119 Mon Sep 17 00:00:00 2001 From: Alan Loi Date: Sat, 10 Jun 2017 19:04:51 +1000 Subject: [PATCH] Fix hash_key_name to be optional for delete (#25009) --- lib/ansible/modules/cloud/amazon/dynamodb_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/dynamodb_table.py b/lib/ansible/modules/cloud/amazon/dynamodb_table.py index c1306399596..2d36af3446e 100644 --- a/lib/ansible/modules/cloud/amazon/dynamodb_table.py +++ b/lib/ansible/modules/cloud/amazon/dynamodb_table.py @@ -444,7 +444,7 @@ def main(): argument_spec.update(dict( state=dict(default='present', choices=['present', 'absent']), name=dict(required=True, type='str'), - hash_key_name=dict(required=True, type='str'), + hash_key_name=dict(type='str'), hash_key_type=dict(default='STRING', type='str', choices=['STRING', 'NUMBER', 'BINARY']), range_key_name=dict(type='str'), range_key_type=dict(default='STRING', type='str', choices=['STRING', 'NUMBER', 'BINARY']),