This commit is contained in:
Joffrey F 2014-05-12 21:36:41 +02:00
parent 3959747620
commit 92c9a89f09
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ def convert_port_bindings(port_bindings):
def convert_volume_binds(binds):
result = []
for k, v in binds.items():
if isinstance(d, dict):
if isinstance(v, dict):
result.append('%s:%s:%s' % (
k, v['bind'], 'ro' if v.get('ro', False) else 'rw'
))