nova/nova/console
melanie witt 791fa595e6 Handle websockify v0.9.0 in console proxy
In websockify v0.9.0, the 'socket' staticmethod  moved from the
websockfiy.websocket.WebSocketServer class to the
websockify.websockifyserver.WebSockifyServer class [1][2], so our
import of the top-level module is no longer sufficient for accessing
the 'socket' method [3] when using v0.9.0:

 AttributeError: module 'websockify' has no attribute 'WebSocketServer'

This adds a try_import from the v0.9.0 location and uses
WebSockifyServer.socket if the module is present. Otherwise, it
will fall back on the old location. This way, we are able to run with
websockify v0.9.0 and earlier versions with the same code.

Partial-Bug: #1840788

[1] 8a69762249
[2] e47591f4aa
[3] https://github.com/novnc/websockify/blob/v0.9.0/websockify/__init__.py

Change-Id: I4a50e2f772101315140df43910be2e3f69a63b73
2019-08-22 15:53:29 +00:00
..
rfb Fix accumulated nits 2018-01-16 14:54:04 +00:00
securityproxy remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
api.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
manager.py trivial: fix a comment typo 2018-04-11 18:05:46 +08:00
rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
serial.py Remove translation of log messages 2017-07-18 09:03:39 +00:00
type.py Add MKS console support 2015-07-25 15:01:44 +03:00
websocketproxy.py Handle websockify v0.9.0 in console proxy 2019-08-22 15:53:29 +00:00
xvp.conf.template Port Cheetah templates to Jinja2 2013-09-02 16:03:34 +02:00
xvp.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00