diff options
author | Dmitry Tantsur <divius.inside@gmail.com> | 2018-06-27 17:59:30 +0200 |
---|---|---|
committer | Dmitry Tantsur <divius.inside@gmail.com> | 2018-07-02 17:37:28 +0200 |
commit | 53e7baef4205767af8e6c15e6e0e5369e04aea5e (patch) | |
tree | 5f3d49084484d1bbd3564315e05eb0b6d48aa097 /ironic/common/hash_ring.py | |
parent | 1171226dba72583ef518580482ae8ed2781fc997 (diff) | |
download | ironic-53e7baef4205767af8e6c15e6e0e5369e04aea5e.tar.gz |
Remove support for creating and loading classic drivers
* removes any bits related to loading classic drivers from
the drivers factory code
* removes exceptions that only happen when classic drivers
can be loaded
* removes the BaseDriver, moves the useful functionality to
the BareDriver class
* /v1/drivers/?type=classic now always returns an empty list
* removes the migration updating classic drivers to hardware
types
The documentation will be updated separately.
Change-Id: I8ee58dfade87ae2a2544c5dcc27702c069f5089d
Diffstat (limited to 'ironic/common/hash_ring.py')
-rw-r--r-- | ironic/common/hash_ring.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ironic/common/hash_ring.py b/ironic/common/hash_ring.py index 61e1b385f..e91abf4d4 100644 --- a/ironic/common/hash_ring.py +++ b/ironic/common/hash_ring.py @@ -49,8 +49,7 @@ class HashRingManager(object): def _load_hash_rings(self): rings = {} - d2c = self.dbapi.get_active_driver_dict() - d2c.update(self.dbapi.get_active_hardware_type_dict()) + d2c = self.dbapi.get_active_hardware_type_dict() for driver_name, hosts in d2c.items(): rings[driver_name] = hashring.HashRing( |