From 483075691cc46fccceabdace298266dceab2d08a Mon Sep 17 00:00:00 2001 From: Hiroaki Kobayashi Date: Wed, 22 Feb 2017 06:20:19 +0900 Subject: [PATCH] Change filter name This patch changes the filter name from ClimateFilter to BlazarFilter. Change-Id: Idd50f1f139924bee88a770318f372daf26b975cc Partial-Bug: #1663460 --- blazarnova/scheduler/filters/blazar_filter.py | 4 ++-- etc/nova.conf.example | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blazarnova/scheduler/filters/blazar_filter.py b/blazarnova/scheduler/filters/blazar_filter.py index 17f1d6e..15aee84 100644 --- a/blazarnova/scheduler/filters/blazar_filter.py +++ b/blazarnova/scheduler/filters/blazar_filter.py @@ -51,7 +51,7 @@ opts = [ cfg.CONF.register_opts(opts, 'blazar:physical:host') -class ClimateFilter(filters.BaseHostFilter): +class BlazarFilter(filters.BaseHostFilter): """Blazar Filter for nova-scheduler.""" run_filter_once_per_request = True @@ -138,4 +138,4 @@ class ClimateFilter(filters.BaseHostFilter): # For backward compatibility. This should be done in this way due to how Nova # imports the filters -BlazarFilter = ClimateFilter +ClimateFilter = BlazarFilter diff --git a/etc/nova.conf.example b/etc/nova.conf.example index 46956d2..336de60 100644 --- a/etc/nova.conf.example +++ b/etc/nova.conf.example @@ -1,4 +1,4 @@ [DEFAULT] scheduler_available_filters = nova.scheduler.filters.all_filters -scheduler_available_filters = blazarnova.scheduler.filters.blazar_filter.ClimateFilter -scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ClimateFilter +scheduler_available_filters = blazarnova.scheduler.filters.blazar_filter.BlazarFilter +scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,BlazarFilter