diff --git a/zunclient/v1/containers.py b/zunclient/v1/containers.py index 438e9f6d..3e6cc6ad 100644 --- a/zunclient/v1/containers.py +++ b/zunclient/v1/containers.py @@ -118,7 +118,7 @@ class ContainerManager(base.Manager): mounts = kwargs.get('mounts', None) if mounts: for mount in mounts: - if mount['type'] == 'bind': + if mount.get('type') == 'bind': mount['source'] = utils.encode_file_data(mount['source']) def delete(self, id, **kwargs):