Skip to content

Commit edc5613

Browse files
committed
fix broken scan
1 parent e26692b commit edc5613

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sandbox-cli"
3-
version = "0.2.34"
3+
version = "0.2.35"
44
description = "Command line tool for interaction with sandboxes"
55
readme = "README.md"
66
requires-python = ">=3.11"

sandbox_cli/utils/scanner/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async def wrapper(
235235
) -> None:
236236
sandbox_arguments = SandboxArguments(
237237
type=ScanType.SCAN,
238-
sandbox_key_name=key.name,
238+
sandbox_key_name=key.name.get_secret_value(),
239239
sandbox_options=sandbox_options.sandbox,
240240
)
241241
save_scan_arguments(out_dir, sandbox_arguments)
@@ -245,7 +245,7 @@ async def wrapper(
245245
# except Exception as ex:
246246
# console.log(f"[cyan]{idx}[/] {file_path} Error: {ex!r}")
247247

248-
console.info(f"Using key: name={key.name} max_workers={key.max_workers}")
248+
console.info(f"Using key: name={key.name.get_secret_value()} max_workers={key.max_workers}")
249249

250250
tasks: list[Coroutine[Any, Any, None]] = []
251251
sandbox, sandbox_options, images = await _prepare_scan_options(

sandbox_cli/utils/scanner/advanced.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ async def wrapper(
327327
) -> None:
328328
sandbox_arguments = SandboxArguments(
329329
type=ScanType.SCAN_NEW,
330-
sandbox_key_name=key.name,
330+
sandbox_key_name=key.name.get_secret_value(),
331331
sandbox_options=sandbox_options,
332332
)
333333
save_scan_arguments(out_dir, sandbox_arguments)
@@ -337,7 +337,7 @@ async def wrapper(
337337
# except Exception as ex:
338338
# console.log(f"[cyan]{idx}[/] {file_path} Error: {ex!r}")
339339

340-
console.info(f"Using key: name={key.name} max_workers={key.max_workers}")
340+
console.info(f"Using key: name={key.name.get_secret_value()} max_workers={key.max_workers}")
341341

342342
tasks: list[Coroutine[Any, Any, None]] = []
343343
with progress:

sandbox_cli/utils/scanner/rescan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ async def wrapper(trace: Path, out_dir: Path, idx: str) -> None:
236236

237237
await process_trace(drakvuf_trace, tcpdump_pcap, trace, out_dir, idx)
238238

239-
console.info(f"Using key: name={key.name} max_workers={key.max_workers}")
239+
console.info(f"Using key: name={key.name.get_secret_value()} max_workers={key.max_workers}")
240240

241241
tasks: list[Coroutine[Any, Any, None]] = []
242242
with progress:
243243
sandbox, sandbox_options = await _prepare_rescan_options(progress, rules_dir, key, is_local)
244244
sandbox_arguments = SandboxArguments(
245245
type=ScanType.RE_SCAN,
246-
sandbox_key_name=key.name,
246+
sandbox_key_name=key.name.get_secret_value(),
247247
sandbox_options=sandbox_options.sandbox,
248248
)
249249

0 commit comments

Comments
 (0)