summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-02-24 00:01:57 +0000
committerChris Behrens <cbehrens@codestud.com>2012-02-27 23:41:06 +0000
commit3f42e11ca0dfedf07f50f4d5e1805914230e5edc (patch)
tree91a3cd6b9754a0dbe9b66a7b27551f525d2529be /nova/context.py
parentf01b9b8dd25d763e652259a0f99264d93661b29f (diff)
downloadnova-3f42e11ca0dfedf07f50f4d5e1805914230e5edc.tar.gz
nova-3f42e11ca0dfedf07f50f4d5e1805914230e5edc.tar.xz
nova-3f42e11ca0dfedf07f50f4d5e1805914230e5edc.zip
Make scheduler filters more pluggable
Filters are supposed to be pluggable, but they are not, since you have to modify __init__.py. This adds a --scheduler_availabile_filters setting which replaces the hardcoding in __init__.py. This setting is a MultiStr (a list, which you can specify more than once) containing the full paths to filter classes to make available to the scheduler. Using a value of 'nova.scheduler.filters.standard_filters' maps to all standard filters included in nova under nova.scheduler.filters. This is the default setting and matches what was in __init__.py before. Also renamed --default_host_filters to --scheduler_default_filters to make the flag a bit more clear. Change-Id: I10eb54e9982b6d42316adfb2cc2600b44a9c3bdf
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions