Revision 25e5e785 lib/objects.py
b/lib/objects.py | ||
---|---|---|
448 | 448 |
for nodegroup in self.nodegroups.values(): |
449 | 449 |
nodegroup.UpgradeConfig() |
450 | 450 |
if self.cluster.drbd_usermode_helper is None: |
451 |
# To decide if we set an helper let's check if at least one instance has |
|
452 |
# a DRBD disk. This does not cover all the possible scenarios but it |
|
453 |
# gives a good approximation. |
|
454 |
if self.HasAnyDiskOfType(constants.LD_DRBD8): |
|
451 |
if self.cluster.IsDiskTemplateEnabled(constants.DT_DRBD8): |
|
455 | 452 |
self.cluster.drbd_usermode_helper = constants.DEFAULT_DRBD_HELPER |
456 | 453 |
if self.networks is None: |
457 | 454 |
self.networks = {} |
Also available in: Unified diff