mirror of https://github.com/docker/docker-py.git
Fix typo -- config is a dictionary
`self.config` is a dictionary, not an object. References to `self.config.Cmd` should be `self.config['Cmd']`.
This commit is contained in:
parent
bfbf1eac54
commit
0cbb9f61aa
|
@ -352,9 +352,9 @@ class BuilderClient(object):
|
||||||
self.config['Image'] = self.image
|
self.config['Image'] = self.image
|
||||||
if id is None:
|
if id is None:
|
||||||
cmd = self.config['Cmd']
|
cmd = self.config['Cmd']
|
||||||
self.config.Cmd = ['true']
|
self.config['Cmd'] = ['true']
|
||||||
id = self.run()
|
id = self.run()
|
||||||
self.config.Cmd = cmd
|
self.config['Cmd'] = cmd
|
||||||
|
|
||||||
res = self.client.commit(id, author=self.maintainer)
|
res = self.client.commit(id, author=self.maintainer)
|
||||||
if 'Id' not in res:
|
if 'Id' not in res:
|
||||||
|
|
Loading…
Reference in New Issue