mirror of https://github.com/m-labs/artiq.git
artiq_dashboard: fix handling of moninj comment
This commit is contained in:
parent
6d92e539b1
commit
207717c740
|
@ -207,11 +207,10 @@ def setup_from_ddb(ddb):
|
||||||
description = set()
|
description = set()
|
||||||
|
|
||||||
for k, v in ddb.items():
|
for k, v in ddb.items():
|
||||||
comment = None
|
|
||||||
if "comment" in v:
|
|
||||||
comment = v["comment"]
|
|
||||||
try:
|
try:
|
||||||
if isinstance(v, dict) and v["type"] == "local":
|
if isinstance(v, dict):
|
||||||
|
comment = v.get("comment")
|
||||||
|
if v["type"] == "local":
|
||||||
if k == "core":
|
if k == "core":
|
||||||
core_addr = v["arguments"]["host"]
|
core_addr = v["arguments"]["host"]
|
||||||
elif v["module"] == "artiq.coredevice.ttl":
|
elif v["module"] == "artiq.coredevice.ttl":
|
||||||
|
|
Loading…
Reference in New Issue