Kaydet (Commit) bd84bebf authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1574 from Coderhypo/master

fix can't get a dict when Containers is None
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment