Kaydet (Commit) 35b8c0a7 authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1586 from terminalmage/refresh_credentials

Add function to refresh credentials from config.json
...@@ -433,3 +433,17 @@ class APIClient( ...@@ -433,3 +433,17 @@ class APIClient(
@property @property
def api_version(self): def api_version(self):
return self._version 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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment