summaryrefslogtreecommitdiffstats
path: root/python-dockering/dockering
diff options
context:
space:
mode:
Diffstat (limited to 'python-dockering/dockering')
-rw-r--r--python-dockering/dockering/config_building.py2
-rw-r--r--python-dockering/dockering/core.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python-dockering/dockering/config_building.py b/python-dockering/dockering/config_building.py
index 08fd1c0..144131e 100644
--- a/python-dockering/dockering/config_building.py
+++ b/python-dockering/dockering/config_building.py
@@ -65,7 +65,7 @@ def create_envs_healthcheck(docker_config, default_interval="15s",
# server cert verification because the hostname is actually the ip
# address.
envs["SERVICE_CHECK_TLS_SKIP_VERIFY"] = "true"
- utils.logger.warn("Https-based health checks may not work because Registrator issue #516")
+ utils.logger.warning("Https-based health checks may not work because Registrator issue #516")
elif hc["type"] == "script":
envs["SERVICE_CHECK_SCRIPT"] = hc["script"]
elif hc["type"] == "docker":
diff --git a/python-dockering/dockering/core.py b/python-dockering/dockering/core.py
index d82e346..b70aabb 100644
--- a/python-dockering/dockering/core.py
+++ b/python-dockering/dockering/core.py
@@ -34,7 +34,7 @@ def create_client(hostname, port, reauth=False, logins=[]):
"""
base_url = "tcp://{0}:{1}".format(hostname, port)
try:
- client = docker.Client(base_url=base_url)
+ client = docker.APIClient(base_url=base_url)
for dcl in logins:
dcl["reauth"] = reauth