Rename notification_topic option

Renames the option to 'topic'.
This commit is contained in:
James King 2015-01-27 16:22:37 -05:00
parent c429952ea9
commit 1b33c97e6d
1 changed files with 14 additions and 0 deletions

View File

@ -199,6 +199,20 @@ def register_and_load_opts():
help='name of the exchange where we receive RPC calls'),
])
ceilometer_group = cfg.OptGroup(name='ceilometer',
title='Ceilometer Reporting Options')
c_enable_reporting = cfg.BoolOpt('enabled',
default=False,
help='Enable reporting metrics to '
'ceilometer.')
c_topic = cfg.StrOpt('topic',
default='notifications.info',
help='The name of the topic queue ceilometer '
'consumes events from.')
cfg.CONF.register_group(ceilometer_group)
cfg.CONF.register_opt(c_enable_reporting, group=ceilometer_group)
cfg.CONF.register_opt(c_topic, group=ceilometer_group)
def main(argv=sys.argv[1:]):
# Change the process and thread name so the logs are cleaner.