Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
python-docker-py.17760
fce_refresh_creds.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fce_refresh_creds.patch of Package python-docker-py.17760
From 0f843414e5b4ba4c2344abb8bf3489eedba055d3 Mon Sep 17 00:00:00 2001 From: Erik Johnson <palehose@gmail.com> Date: Tue, 2 May 2017 14:38:07 -0500 Subject: [PATCH 1/2] Add a reload_config function to the DaemonApiMixin This allows the client to reload the config.json for an existing APIClient instance. Signed-off-by: Erik Johnson <palehose@gmail.com> --- docker/api/daemon.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) --- a/docker/client.py +++ b/docker/client.py @@ -330,6 +330,20 @@ class Client( def api_version(self): return self._version + def reload_config(self, dockercfg_path=None): + """ + Force a reload of the auth configuration + + Args: + dockercfg_path (str): Use a custom path for the Docker config file + (default ``$HOME/.docker/config.json`` if present, + otherwise``$HOME/.dockercfg``) + + Returns: + None + """ + self._auth_configs = auth.load_config(dockercfg_path) + class AutoVersionClient(Client): def __init__(self, *args, **kwargs):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor