Sfoglia il codice sorgente

Fixed unicode encoding issue.

Nuwan Goonasekera 10 anni fa
parent
commit
9ad76b640e
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      cloudbridge/cloud/providers/aws/resources.py

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

@@ -658,7 +658,8 @@ class AWSSecurityGroupRule(BaseSecurityGroupRule):
         """
         md5 = hashlib.md5()
         md5.update("{0}-{1}-{2}-{3}".format(
-            self.ip_protocol, self.from_port, self.to_port, self.cidr_ip))
+            self.ip_protocol, self.from_port, self.to_port, self.cidr_ip)
+            .encode('ascii'))
         return md5.hexdigest()
 
     @property