mirror of
https://github.com/usestrix/strix.git
synced 2026-09-05 08:06:08 +00:00
fix(state): record null transport when no local sources are present
This commit is contained in:
parent
64956f45be
commit
ad5d219583
1 changed files with 7 additions and 3 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue