Change the default port references to DEFAULT_PORT
If we need to change it again then this will make it easier. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
b987031f7c
commit
0f6375a931
|
@ -48,7 +48,7 @@ if __name__ == '__main__':
|
||||||
app = config.load_paste_app(conf)
|
app = config.load_paste_app(conf)
|
||||||
|
|
||||||
server = wsgi.Server()
|
server = wsgi.Server()
|
||||||
server.start(app, conf, default_port=9292)
|
server.start(app, conf, default_port=DEFAULT_PORT)
|
||||||
server.wait()
|
server.wait()
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
sys.exit("ERROR: %s" % e)
|
sys.exit("ERROR: %s" % e)
|
||||||
|
|
|
@ -24,7 +24,7 @@ The schema for each option is defined using the Opt sub-classes e.g.
|
||||||
default='0.0.0.0',
|
default='0.0.0.0',
|
||||||
help='IP address to listen on'),
|
help='IP address to listen on'),
|
||||||
cfg.IntOpt('bind_port',
|
cfg.IntOpt('bind_port',
|
||||||
default=9292,
|
default=DEFAULT_PORT,
|
||||||
help='Port number to listen on')
|
help='Port number to listen on')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -103,14 +103,14 @@ The config manager has a single CLI option defined by default, --config-file:
|
||||||
self.register_cli_opt(self.config_file_opt)
|
self.register_cli_opt(self.config_file_opt)
|
||||||
|
|
||||||
Option values are parsed from any supplied config files using SafeConfigParser.
|
Option values are parsed from any supplied config files using SafeConfigParser.
|
||||||
If none are specified, a default set is used e.g. glance-api.conf and
|
If none are specified, a default set is used e.g. heat-api.conf and
|
||||||
glance-common.conf:
|
heat-common.conf:
|
||||||
|
|
||||||
glance-api.conf:
|
heat-api.conf:
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
bind_port = 9292
|
bind_port = 8000
|
||||||
|
|
||||||
glance-common.conf:
|
heat-common.conf:
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
bind_host = 0.0.0.0
|
bind_host = 0.0.0.0
|
||||||
|
|
||||||
|
@ -156,9 +156,9 @@ Options can be registered as belonging to a group:
|
||||||
If no group is specified, options belong to the 'DEFAULT' section of config
|
If no group is specified, options belong to the 'DEFAULT' section of config
|
||||||
files:
|
files:
|
||||||
|
|
||||||
glance-api.conf:
|
heat-api.conf:
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
bind_port = 9292
|
bind_port = 8000
|
||||||
...
|
...
|
||||||
|
|
||||||
[rabbit]
|
[rabbit]
|
||||||
|
|
Loading…
Reference in New Issue