Revision 5ae4945a lib/server/rapi.py
b/lib/server/rapi.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
332 | 332 |
|
333 | 333 |
server = \ |
334 | 334 |
http.server.HttpServer(mainloop, options.bind_address, options.port, |
335 |
handler, ssl_params=options.ssl_params, ssl_verify_peer=False) |
|
335 |
handler, |
|
336 |
ssl_params=options.ssl_params, ssl_verify_peer=False) |
|
336 | 337 |
server.Start() |
337 | 338 |
|
338 | 339 |
return (mainloop, server) |
... | ... | |
354 | 355 |
|
355 | 356 |
""" |
356 | 357 |
parser = optparse.OptionParser(description="Ganeti Remote API", |
357 |
usage="%prog [-f] [-d] [-p port] [-b ADDRESS]", |
|
358 |
version="%%prog (ganeti) %s" % constants.RELEASE_VERSION) |
|
358 |
usage="%prog [-f] [-d] [-p port] [-b ADDRESS]", |
|
359 |
version="%%prog (ganeti) %s" % |
|
360 |
constants.RELEASE_VERSION) |
|
359 | 361 |
|
360 | 362 |
daemon.GenericMain(constants.RAPI, parser, CheckRapi, PrepRapi, ExecRapi, |
361 | 363 |
default_ssl_cert=constants.RAPI_CERT_FILE, |
Also available in: Unified diff