atlasbot: answer hardware mix queries
This commit is contained in:
parent
ea8eda2c73
commit
9bf822ec36
@ -16,7 +16,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: atlasbot
|
app: atlasbot
|
||||||
annotations:
|
annotations:
|
||||||
checksum/atlasbot-configmap: manual-atlasbot-63
|
checksum/atlasbot-configmap: manual-atlasbot-64
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
vault.hashicorp.com/role: "comms"
|
vault.hashicorp.com/role: "comms"
|
||||||
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
||||||
|
|||||||
@ -1292,6 +1292,11 @@ def structured_answer(
|
|||||||
if not op and entity == "node":
|
if not op and entity == "node":
|
||||||
op = "list" if (include_hw or exclude_hw or nodes_in_query) else "count"
|
op = "list" if (include_hw or exclude_hw or nodes_in_query) else "count"
|
||||||
|
|
||||||
|
if entity == "node" and ("hardware mix" in q or "architecture" in q):
|
||||||
|
hw_line = _hardware_mix_line(inventory)
|
||||||
|
if hw_line:
|
||||||
|
return _format_confidence(hw_line, "high")
|
||||||
|
|
||||||
if op == "top" and metric is None:
|
if op == "top" and metric is None:
|
||||||
metric = "cpu"
|
metric = "cpu"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user