diff --git a/sw/host/provisioning/orchestrator/src/ot_dut.py b/sw/host/provisioning/orchestrator/src/ot_dut.py index 91a36411d27e8..d2a345840728e 100644 --- a/sw/host/provisioning/orchestrator/src/ot_dut.py +++ b/sw/host/provisioning/orchestrator/src/ot_dut.py @@ -14,7 +14,7 @@ from device_id import DeviceId, DeviceIdentificationNumber from sku_config import SkuConfig -from util import confirm, format_hex, run, resolve_runfile +from util import confirm, format_hex, resolve_runfile, run # FPGA bitstream. _FPGA_UNIVERSAL_SPLICE_BITSTREAM = "hw/bitstream/universal/splice.bit" @@ -236,8 +236,9 @@ def run_ft(self) -> None: # Write CA configs to a JSON tmpfile. ca_config_dict = { "dice": self.sku_config.dice_ca.to_dict_entry(), - "ext": self.sku_config.ext_ca.to_dict_entry(), } + if self.sku_config.ext_ca: + ca_config_dict["ext"] = self.sku_config.ext_ca.to_dict_entry() with tempfile.NamedTemporaryFile(mode="w+") as ca_config_file: json.dump(ca_config_dict, ca_config_file)