~ubuntu-branches/ubuntu/precise/keystone/precise-security

« back to all changes in this revision

Viewing changes to bin/keystone-all

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-09 12:26:12 UTC
  • mto: (25.1.1 precise-proposed)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120309122612-t4zqpaytkiptezsa
Tags: upstream-2012.1~rc1~20120308.2103
ImportĀ upstreamĀ versionĀ 2012.1~rc1~20120308.2103

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
CONF = config.CONF
26
26
 
27
27
 
28
 
def create_server(conf, name, port):
 
28
def create_server(conf, name, host, port):
29
29
    app = deploy.loadapp('config:%s' % conf, name=name)
30
 
    return wsgi.Server(app, port)
 
30
    return wsgi.Server(app, host=host, port=port)
31
31
 
32
32
 
33
33
def serve(*servers):
65
65
    servers = []
66
66
    servers.append(create_server(CONF.config_file[0],
67
67
                                 'admin',
 
68
                                 options['bind_host'],
68
69
                                 int(options['admin_port'])))
69
70
    servers.append(create_server(CONF.config_file[0],
70
71
                                 'main',
 
72
                                 options['bind_host'],
71
73
                                 int(options['public_port'])))
72
74
    serve(*servers)