diff --git a/zunclient/common/websocketclient/websocketclient.py b/zunclient/common/websocketclient/websocketclient.py index b17f226d..b314b2ef 100644 --- a/zunclient/common/websocketclient/websocketclient.py +++ b/zunclient/common/websocketclient/websocketclient.py @@ -353,7 +353,7 @@ class WINCHHandler(object): def do_attach(zunclient, url, container_id, escape, close_wait): - if url.startswith("ws://"): + if url.startswith("ws://") or url.startswith("wss://"): try: wscls = AttachClient(zunclient=zunclient, url=url, id=container_id, escape=escape, @@ -369,7 +369,7 @@ def do_attach(zunclient, url, container_id, escape, close_wait): def do_exec(zunclient, url, container_id, exec_id, escape, close_wait): - if url.startswith("ws://"): + if url.startswith("ws://") or url.startswith("wss://"): try: wscls = ExecClient(zunclient=zunclient, url=url, exec_id=exec_id,