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):
openSUSE Build Service is sponsored by