fix(state): record null transport when no local sources are present

This commit is contained in:
Manideep Malyala 2026-08-23 23:25:51 +05:30
parent 64956f45be
commit ad5d219583

View file

@ -397,9 +397,13 @@ class ReportState:
self.end_time = None
self.scan_results = None
self.final_scan_result = None
backend_name = load_settings().runtime.backend
use_bind_mounts = backend_supports_bind_mounts(backend_name) and not load_settings().runtime.require_mount_free
transport = "bind-mount" if use_bind_mounts else "mount-free"
local_sources = config.get("local_sources", [])
if not local_sources:
transport = None
else:
backend_name = load_settings().runtime.backend
use_bind_mounts = backend_supports_bind_mounts(backend_name) and not load_settings().runtime.require_mount_free
transport = "bind-mount" if use_bind_mounts else "mount-free"
self.run_record.update(
{