From 0fe0dca6fc0461f7d58c1b1fb73026153d31a480 Mon Sep 17 00:00:00 2001 From: Robert Willard Date: Thu, 11 Feb 2016 13:38:27 -0800 Subject: [PATCH] p error --- sidekick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidekick.py b/sidekick.py index ebccea6..3e707ef 100644 --- a/sidekick.py +++ b/sidekick.py @@ -98,7 +98,7 @@ def announce_services( services, etcd_folder, etcd_client, timeout , ttl, vulcan else: # Announce this server to ETCD etcd_client.write( backend, {"Type": value['type']}, ttl=ttl) - etcd_client.write( server, {"URL": "http://{0!}:{1!}".format(value['ip'], value['port'])}, ttl=ttl) + etcd_client.write( server, {"URL": "http://{0!s}:{1!s}".format(value['ip'], value['port'])}, ttl=ttl) etcd_client.write( frontend, {"Type": value['type'], "BackendId": key, "Route": "Host(`{0}`)".format(value['domain'])}, ttl=ttl) except etcd.EtcdException as e: logging.error( e )