mirror of https://github.com/docker/docker-py.git
Merge pull request #1574 from Coderhypo/master
fix can't get a dict when Containers is None
This commit is contained in:
commit
bd84bebfa9
|
|
@ -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