Revision fa6347d0
b/lib/config.py | ||
---|---|---|
212 | 212 |
if mac in all_macs: |
213 | 213 |
raise errors.ReservationError("mac already in use") |
214 | 214 |
else: |
215 |
self._temporary_macs.Reserve(mac, ec_id)
|
|
215 |
self._temporary_macs.Reserve(ec_id, mac)
|
|
216 | 216 |
|
217 | 217 |
@locking.ssynchronized(_config_lock, shared=1) |
218 | 218 |
def ReserveLV(self, lv_name, ec_id): |
... | ... | |
226 | 226 |
if lv_name in all_lvs: |
227 | 227 |
raise errors.ReservationError("LV already in use") |
228 | 228 |
else: |
229 |
self._temporary_lvs.Reserve(lv_name, ec_id)
|
|
229 |
self._temporary_lvs.Reserve(ec_id, lv_name)
|
|
230 | 230 |
|
231 | 231 |
@locking.ssynchronized(_config_lock, shared=1) |
232 | 232 |
def GenerateDRBDSecret(self, ec_id): |
Also available in: Unified diff