Revision 9ca8a7c5 lib/query.py
b/lib/query.py | ||
---|---|---|
1348 | 1348 |
if bool(ctx.live_data.get(inst.name)): |
1349 | 1349 |
if inst.name in ctx.wrongnode_inst: |
1350 | 1350 |
return constants.INSTST_WRONGNODE |
1351 |
elif inst.admin_up:
|
|
1351 |
elif inst.admin_state:
|
|
1352 | 1352 |
return constants.INSTST_RUNNING |
1353 | 1353 |
else: |
1354 | 1354 |
return constants.INSTST_ERRORUP |
1355 | 1355 |
|
1356 |
if inst.admin_up:
|
|
1356 |
if inst.admin_state:
|
|
1357 | 1357 |
return constants.INSTST_ERRORDOWN |
1358 | 1358 |
|
1359 | 1359 |
return constants.INSTST_ADMINDOWN |
... | ... | |
1778 | 1778 |
(_MakeField("admin_state", "Autostart", QFT_BOOL, |
1779 | 1779 |
"Desired state of instance (if set, the instance should be" |
1780 | 1780 |
" up)"), |
1781 |
IQ_CONFIG, 0, _GetItemAttr("admin_up")),
|
|
1781 |
IQ_CONFIG, 0, _GetItemAttr("admin_state")),
|
|
1782 | 1782 |
(_MakeField("tags", "Tags", QFT_OTHER, "Tags"), IQ_CONFIG, 0, |
1783 | 1783 |
lambda ctx, inst: list(inst.GetTags())), |
1784 | 1784 |
(_MakeField("console", "Console", QFT_OTHER, |
Also available in: Unified diff