mirror of
https://github.com/hemna/aprsd-stock-plugin.git
synced 2026-07-29 05:24:10 -04:00
28 lines
469 B
Python
28 lines
469 B
Python
from oslo_config import cfg
|
|
|
|
plugin_group = cfg.OptGroup(
|
|
name="aprsd_stock_plugin",
|
|
title="APRSD Stock Plugin settings",
|
|
)
|
|
|
|
plugin_opts = [
|
|
cfg.BoolOpt(
|
|
"enabled",
|
|
default=False,
|
|
help="Enable the plugin?",
|
|
),
|
|
]
|
|
|
|
ALL_OPTS = plugin_opts
|
|
|
|
|
|
def register_opts(cfg):
|
|
cfg.register_group(plugin_group)
|
|
cfg.register_opts(ALL_OPTS, group=plugin_group)
|
|
|
|
|
|
def list_opts():
|
|
return {
|
|
plugin_group.name: plugin_opts,
|
|
}
|