Commit d08e1f69 authored by Sigmund Augdal's avatar Sigmund Augdal

Remove some unused code

parent 2d33008d
#!/usr/bin/env python
import etcd
import os
import os.path
import subprocess
import logging
import logging.handlers
......@@ -19,22 +17,6 @@ from nova_router import security_groups
CONF_FILE = "/etc/haproxy/haproxy.cfg"
def etcd_get_dict(etcd_client, prefix):
result = dict()
for key in etcd_client.list(prefix):
if not key.dir:
result[key.key.split('/')[-1]] = key.value
return result
def etcd_get_dirs(etcd_client, prefix):
result = set()
for key in etcd_client.list(prefix):
if key.dir:
return result
class Generator(object):
def __init__(self, cert, key, cacert, logfile=None):
self.etcd_client = etcd.Etcd(ssl_key=key, ssl_cert=cert, verify=cacert)
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