Kaydet (Commit) 2d026fd1 authored tarafından hhHypo's avatar hhHypo

fix can't get a dict when Containers is None

Signed-off-by: 's avatarhhHypo <i@ihypo.net>
üst f127a9ff
......@@ -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