Skip to content

Commit

Permalink
Add new aws_waf_condition module (ansible#33110)
Browse files Browse the repository at this point in the history
  • Loading branch information
willthames authored and s-hertel committed Feb 1, 2018
1 parent f8f2b6d commit b5a1643
Show file tree
Hide file tree
Showing 6 changed files with 967 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ See [Porting Guide](http://docs.ansible.com/ansible/devel/porting_guides.html) f
* aws_s3_cors
* aws_ses_identity
* aws_ssm_parameter_store
* aws_waf_condition
* cloudfront_distribution
* cloudfront_origin_access_identity
* ec2_ami_facts
Expand Down
6 changes: 6 additions & 0 deletions hacking/aws_config/testing_policies/security-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"Resource": "*",
"Effect": "Allow",
"Sid": "AllowReadOnlyIAMUse"
},
{
"Sid": "AllowWAFusage",
"Action": "waf:*",
"Effect": "Allow",
"Resource": "*"
}
]
}
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def _hashable_policy(policy, policy_list):
if isinstance(tupleified, list):
tupleified = tuple(tupleified)
policy_list.append(tupleified)
elif isinstance(policy, string_types):
elif isinstance(policy, string_types) or isinstance(policy, binary_type):
return [(to_text(policy))]
elif isinstance(policy, dict):
sorted_keys = list(policy.keys())
Expand Down
Loading

0 comments on commit b5a1643

Please sign in to comment.