libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [6/9] libcloud git commit: fix if statement resulting in unreachable code
Date Mon, 10 Jul 2017 08:48:25 GMT
fix if statement resulting in unreachable code


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/10cb33b7
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/10cb33b7
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/10cb33b7

Branch: refs/heads/trunk
Commit: 10cb33b7fc7b021690ccd7205467f36eb063ea43
Parents: a84dc39
Author: jhelie <jean.helie@gmail.com>
Authored: Thu Jun 22 13:57:39 2017 +0100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Jul 10 09:48:02 2017 +0100

----------------------------------------------------------------------
 libcloud/loadbalancer/drivers/dimensiondata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/10cb33b7/libcloud/loadbalancer/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/dimensiondata.py b/libcloud/loadbalancer/drivers/dimensiondata.py
index 71cc167..2156c44 100644
--- a/libcloud/loadbalancer/drivers/dimensiondata.py
+++ b/libcloud/loadbalancer/drivers/dimensiondata.py
@@ -629,7 +629,7 @@ class DimensionDataLBDriver(Driver):
         :return: Instance of the listener
         :rtype: ``DimensionDataVirtualListener``
         """
-        if port is 80 or 443:
+        if (port == 80) or (port == 443):
             listener_type = 'PERFORMANCE_LAYER_4'
         else:
             listener_type = 'STANDARD'


Mime
View raw message