Skip to content

Commit

Permalink
fix: lint driven typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jan 15, 2025
1 parent 60b71a9 commit e87e421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dyana/tracer/tracee.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def _start(self) -> None:
# 👁️‍🗨️ tracer: KConfig: assuming kconfig values, might have unexpected behavior

volumes = {"/etc/os-release": "/etc/os-release-host", "/var/run/docker.sock": "/var/run/docker.sock"}
if self.policy:
volumes[self.policy] = self.policy_volume
if self.policy and self.policy_volume:
volumes[str(self.policy)] = self.policy_volume

# start tracee in a detached container
self.container = docker.run_privileged_detached(
Expand Down

0 comments on commit e87e421

Please sign in to comment.