Commit 2d33008d authored by Sigmund Augdal's avatar Sigmund Augdal

Fix copy paste issues

parent b630ee0a
......@@ -140,9 +140,9 @@ class Generator(object):
def parse_args():
parser = argparse.ArgumentParser(description="Configure haproxy based on data from etcd")
parser = argparse.ArgumentParser(description="Configure ipset based on data from etcd")
parser.add_argument('-d', '--daemonize', default=False, action='store_true', help="Run as daemon")
parser.add_argument('--pidfile', type=str, default="/var/run/nova_lb_configuration.pid", help="pidfile when run as daemon")
parser.add_argument('--pidfile', type=str, default="/var/run/nova_sg_configurator.pid", help="pidfile when run as daemon")
parser.add_argument('--cert', default="client.crt", help="client certificate to use")
parser.add_argument('--key', default="client.key", help="private key to use for client certificate")
parser.add_argument('--cacert', default="etcd_ca.crt", help="ca certificate to use")
......@@ -153,7 +153,7 @@ if __name__ == '__main__':
logging.getLogger("requests").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
logfile = '/var/log/nova_loadbalancer_configurator.log'
logfile = '/var/log/nova_sg_configurator.log'
daemon_context = daemon.DaemonContext(pidfile=TimeoutPIDLockFile(args.pidfile))
with daemon_context:
Generator(args.cert, args.key, args.cacert, logfile=logfile).main()
......
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