Moved default parameters from code to config file

The following parameters are configured via stackalytics.conf:
 * default_metric
 * default_project_type
 * default_release (latest from default_data if None)

Implements blueprint: move-defaults-to-config

Change-Id: Ie3cacb9594f86401afa8b9a60621712b72fbf002
This commit is contained in:
Ilya Shakhat
2014-04-14 17:53:45 +04:00
parent 4e2726b27c
commit eb3bebbaa6
5 changed files with 38 additions and 10 deletions

View File

@@ -46,4 +46,10 @@ OPTS = [
default=('https://raw.github.com/openstack/governance/'
'master/reference/programs.yaml'),
help='The address of file with list of programs'),
cfg.StrOpt('default-metric', default='marks',
help='Default metric'),
cfg.StrOpt('default-release',
help='Default release, the most recent if not set'),
cfg.StrOpt('default-project-type', default='openstack',
help='Default project type'),
]