Merge pull request #37447 from rallytime/fix-36961

Cast ip_protocol rule as a str() in boto_secgroup.present
This commit is contained in:
Mike Place 2016-11-04 17:03:45 +13:00 committed by GitHub
commit 651e0f728f

View file

@ -326,7 +326,7 @@ def _get_rule_changes(rules, _rules):
# 2. determine if rule exists in existing security group rules
for rule in rules:
try:
ip_protocol = rule.get('ip_protocol')
ip_protocol = str(rule.get('ip_protocol'))
except KeyError:
raise SaltInvocationError('ip_protocol, to_port, and from_port are'
' required arguments for security group'