mirror of https://github.com/docker/docker-py.git
fix can't get a dict when Containers is None
Signed-off-by: hhHypo <i@ihypo.net>
This commit is contained in:
parent
f127a9ffdc
commit
2d026fd1e5
|
@ -22,7 +22,7 @@ class Network(Model):
|
|||
"""
|
||||
return [
|
||||
self.client.containers.get(cid) for cid in
|
||||
self.attrs.get('Containers', {}).keys()
|
||||
(self.attrs.get('Containers') or {}).keys()
|
||||
]
|
||||
|
||||
def connect(self, container):
|
||||
|
|
Loading…
Reference in New Issue