projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix livemodel example
[osm/N2VC.git]
/
juju
/
client
/
connection.py
diff --git
a/juju/client/connection.py
b/juju/client/connection.py
index
69ac425
..
3b5bfc4
100644
(file)
--- a/
juju/client/connection.py
+++ b/
juju/client/connection.py
@@
-1,4
+1,3
@@
-import asyncio
import io
import json
import logging
import io
import json
import logging
@@
-42,6
+41,12
@@
class Connection:
self.ws = None
self.facades = {}
self.ws = None
self.facades = {}
+ @property
+ def is_open(self):
+ if self.ws:
+ return self.ws.open
+ return False
+
def _get_ssl(self, cert):
return ssl.create_default_context(
purpose=ssl.Purpose.CLIENT_AUTH, cadata=cert)
def _get_ssl(self, cert):
return ssl.create_default_context(
purpose=ssl.Purpose.CLIENT_AUTH, cadata=cert)