summaryrefslogtreecommitdiff
path: root/ironic/common/hash_ring.py
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2018-06-27 17:59:30 +0200
committerDmitry Tantsur <divius.inside@gmail.com>2018-07-02 17:37:28 +0200
commit53e7baef4205767af8e6c15e6e0e5369e04aea5e (patch)
tree5f3d49084484d1bbd3564315e05eb0b6d48aa097 /ironic/common/hash_ring.py
parent1171226dba72583ef518580482ae8ed2781fc997 (diff)
downloadironic-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.py3
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(