Просмотр исходного кода

Raise the actual EC2 exception

Enis Afgan 10 лет назад
Родитель
Сommit
13e70cd044
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cloudbridge/cloud/providers/aws/resources.py

+ 1 - 1
cloudbridge/cloud/providers/aws/resources.py

@@ -652,7 +652,7 @@ class AWSSecurityGroup(BaseSecurityGroup):
                 return self.get_rule(ip_protocol, from_port, to_port, cidr_ip,
                                      src_group)
             else:
-                raise EC2ResponseError
+                raise ec2e
         return None
 
     def get_rule(self, ip_protocol=None, from_port=None, to_port=None,