~markmc/nova/flat-dhcp-without-bridge-iface

« back to all changes in this revision

Viewing changes to nova/scheduler/host_filter.py

  • Committer: Tarmac
  • Author(s): Ed Leafe
  • Date: 2011-08-19 18:37:39 UTC
  • mfrom: (1452.2.4 lp828848)
  • Revision ID: tarmac-20110819183739-yar3yr2qoq96oscy
Removes the incorrect hard-coded filter path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    if not filter_name:
59
59
        filter_name = FLAGS.default_host_filter
60
60
    for filter_class in _get_filters():
61
 
        host_match = "%s.%s" % (filter_class.__module__, filter_class.__name__)
62
 
        if (host_match.startswith("nova.scheduler.filters") and
63
 
                (host_match.split(".")[-1] == filter_name)):
 
61
        if filter_class.__name__ == filter_name:
64
62
            return filter_class()
65
63
    raise exception.SchedulerHostFilterNotFound(filter_name=filter_name)