forked from M-Labs/artiq
master/worker_db: make arguments optional in DDB entries
This commit is contained in:
parent
ff4a46c278
commit
790269eee7
@ -90,7 +90,7 @@ def _create_device(desc, device_mgr):
|
||||
if ty == "local":
|
||||
module = importlib.import_module(desc["module"])
|
||||
device_class = getattr(module, desc["class"])
|
||||
return device_class(device_mgr, **desc["arguments"])
|
||||
return device_class(device_mgr, **desc.get("arguments", {}))
|
||||
elif ty == "controller":
|
||||
if desc.get("best_effort", False):
|
||||
cls = BestEffortClient
|
||||
|
Loading…
Reference in New Issue
Block a user