Merge pull request #1574 from Coderhypo/master

fix can't get a dict when Containers is None
This commit is contained in:
Joffrey F 2017-04-27 15:43:45 -07:00 committed by GitHub
commit bd84bebfa9
1 changed files with 1 additions and 1 deletions

View File

@ -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):