mirror of https://github.com/docker/docker-py.git
Update configs.py to create config from id.
Signed-off-by: Johnny Downs <johnnydowns@protonmail.com>
This commit is contained in:
parent
7911c54635
commit
dede52ab21
|
|
@ -30,7 +30,8 @@ class ConfigCollection(Collection):
|
|||
|
||||
def create(self, **kwargs):
|
||||
obj = self.client.api.create_config(**kwargs)
|
||||
return self.prepare_model(obj)
|
||||
config = self.client.configs.get(obj.get('ID'))
|
||||
return self.prepare_model(config)
|
||||
create.__doc__ = APIClient.create_config.__doc__
|
||||
|
||||
def get(self, config_id):
|
||||
|
|
|
|||
Loading…
Reference in New Issue