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 )