~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/common/driver_factory.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-01-05 12:21:37 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150105122137-171bqrdpcxqipunk
Tags: 2015.1~b1-0ubuntu1
* New upstream beta release:
  - d/control: Align version requirements with upstream release.
* d/watch: Update uversionmangle to deal with kilo beta versioning
  changes.
* d/control: Bumped Standards-Version to 3.9.6, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#    under the License.
15
15
 
16
16
from oslo.config import cfg
 
17
from oslo_concurrency import lockutils
 
18
from stevedore import dispatch
17
19
 
18
20
from ironic.common import exception
19
21
from ironic.common.i18n import _LI
20
 
from ironic.openstack.common import lockutils
21
22
from ironic.openstack.common import log
22
 
from stevedore import dispatch
23
23
 
24
24
 
25
25
LOG = log.getLogger(__name__)
112
112
        def _check_func(ext):
113
113
            return ext.name in CONF.enabled_drivers
114
114
 
115
 
        cls._extension_manager = \
 
115
        cls._extension_manager = (
116
116
                dispatch.NameDispatchExtensionManager(
117
117
                        'ironic.drivers',
118
118
                        _check_func,
119
119
                        invoke_on_load=True,
120
 
                        on_load_failure_callback=_catch_driver_not_found)
 
120
                        on_load_failure_callback=_catch_driver_not_found))
121
121
        LOG.info(_LI("Loaded the following drivers: %s"),
122
122
                cls._extension_manager.names())
123
123