You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/08 02:30:41 UTC

[10/27] libcloud git commit: secure by default

secure by default


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

Branch: refs/heads/trunk
Commit: 723a179b728c46b0f3d8f6376eb08b7ed6b46168
Parents: ce91310
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Thu Sep 29 11:47:46 2016 -0400
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 8 13:29:22 2016 +1100

----------------------------------------------------------------------
 libcloud/container/drivers/rancher.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/723a179b/libcloud/container/drivers/rancher.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/rancher.py b/libcloud/container/drivers/rancher.py
index e0395e1..1d0618e 100644
--- a/libcloud/container/drivers/rancher.py
+++ b/libcloud/container/drivers/rancher.py
@@ -87,7 +87,7 @@ class RancherContainerDriver(ContainerDriver):
     # As in the /v1/
     version = '1'
 
-    def __init__(self, key, secret, secure=False, host='localhost', port=80):
+    def __init__(self, key, secret, secure=True, host='localhost', port=443):
         """
         Rancher Container driver class.
 
@@ -126,8 +126,8 @@ class RancherContainerDriver(ContainerDriver):
         super(RancherContainerDriver, self).__init__(key=key, secret=secret,
                                                      secure=secure, host=host,
                                                      port=port)
-        if host.startswith('https://'):
-            secure = True
+        if host.startswith('http://'):
+            secure = False
 
         # strip the prefix
         prefixes = ['http://', 'https://']