mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #37447 from rallytime/fix-36961
Cast ip_protocol rule as a str() in boto_secgroup.present
This commit is contained in:
commit
651e0f728f
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue