Revision effab4ca lib/query.py
b/lib/query.py | ||
---|---|---|
487 | 487 |
|
488 | 488 |
|
489 | 489 |
#: Fields requiring talking to the node |
490 |
# Note that none of these are available for non-vm_capable nodes |
|
490 | 491 |
_NODE_LIVE_FIELDS = { |
491 | 492 |
"bootid": ("BootID", QFT_TEXT, "bootid"), |
492 | 493 |
"cnodes": ("CNodes", QFT_NUMBER, "cpu_nodes"), |
... | ... | |
577 | 578 |
if node.offline: |
578 | 579 |
return _FS_OFFLINE |
579 | 580 |
|
581 |
if not node.vm_capable: |
|
582 |
return _FS_UNAVAIL |
|
583 |
|
|
580 | 584 |
if not ctx.curlive_data: |
581 | 585 |
return _FS_NODATA |
582 | 586 |
|
Also available in: Unified diff