Fixes docker.errors.DockerException: 'dns' parameter has no effect on create_container(). It has been moved to start()

pull/18777/head
Marek Chodor 10 years ago committed by Matt Clay
parent 724ae97898
commit 35ab6d15df

@ -735,13 +735,9 @@ class DockerManager(object):
'name': self.module.params.get('name'), 'name': self.module.params.get('name'),
'stdin_open': self.module.params.get('stdin_open'), 'stdin_open': self.module.params.get('stdin_open'),
'tty': self.module.params.get('tty'), 'tty': self.module.params.get('tty'),
'dns': self.module.params.get('dns'),
'volumes_from': self.module.params.get('volumes_from'), 'volumes_from': self.module.params.get('volumes_from'),
} }
if params['dns'] is not None:
self.ensure_capability('dns')
if params['volumes_from'] is not None: if params['volumes_from'] is not None:
self.ensure_capability('volumes_from') self.ensure_capability('volumes_from')

Loading…
Cancel
Save