Revision 0fbedb7a lib/objects.py
b/lib/objects.py | ||
---|---|---|
1350 | 1350 |
|
1351 | 1351 |
self.diskparams = UpgradeDiskParams(self.diskparams) |
1352 | 1352 |
|
1353 |
@property |
|
1354 |
def primary_hypervisor(self): |
|
1355 |
"""The first hypervisor is the primary. |
|
1356 |
|
|
1357 |
Useful, for example, for L{Node}'s hv/disk state. |
|
1358 |
|
|
1359 |
""" |
|
1360 |
return self.enabled_hypervisors[0] |
|
1361 |
|
|
1353 | 1362 |
def ToDict(self): |
1354 | 1363 |
"""Custom function for cluster. |
1355 | 1364 |
|
Also available in: Unified diff