From 745b28072a1293f6f3716e79a6f4a8dd31d6aa45 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 31 Jul 2014 14:01:44 -0500 Subject: [PATCH] Check for the numeric "all" value (-1) for the rule protocol Fixes #7832 --- library/cloud/ec2_group | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cloud/ec2_group b/library/cloud/ec2_group index bed8978e826..1ebc69efebb 100644 --- a/library/cloud/ec2_group +++ b/library/cloud/ec2_group @@ -253,7 +253,7 @@ def main(): if target_group_created: changed = True - if rule['proto'] == 'all': + if rule['proto'] in ('all', '-1', -1): rule['proto'] = -1 rule['from_port'] = None rule['to_port'] = None @@ -293,7 +293,7 @@ def main(): if target_group_created: changed = True - if rule['proto'] == 'all': + if rule['proto'] in ('all', '-1', -1): rule['proto'] = -1 rule['from_port'] = None rule['to_port'] = None