From 405df30e343ea8dc7517c137b7f005e1b18f4d24 Mon Sep 17 00:00:00 2001 From: Lei Li Date: Fri, 3 Mar 2017 16:00:14 +0800 Subject: [PATCH] Right websocket attach for interactive mode It should call _websocket_attach as zun_utils does not have such method. Closes-Bug: #1669704 Change-Id: I84ef1ef317d180bcc386b42c87c325939154497c Signed-off-by: Lei Li --- zunclient/v1/containers_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zunclient/v1/containers_shell.py b/zunclient/v1/containers_shell.py index 8009a8a7..da7d6389 100644 --- a/zunclient/v1/containers_shell.py +++ b/zunclient/v1/containers_shell.py @@ -518,7 +518,7 @@ def do_update(cs, args): def do_attach(cs, args): """Attach to a container.""" response = cs.containers.attach(args.container) - zun_utils.websocket_attach(response, args.container, "~", 0.5) + _websocket_attach(response, args.container, "~", 0.5) @utils.arg('container',