Skip to content

Commit

Permalink
Fix pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed Jul 28, 2023
1 parent 82540c5 commit 2ee6377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion supervisor/docker/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def host_mounts_available(self) -> bool:

@Job(limit=JobExecutionLimit.GROUP_ONCE, on_condition=DockerJobError)
async def attach(
self, version: AwesomeVersion, skip_state_event_if_down: bool = False
self, version: AwesomeVersion, *, skip_state_event_if_down: bool = False
) -> None:
"""Attach to running docker container."""
try:
Expand Down
3 changes: 2 additions & 1 deletion supervisor/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def start(self):
yield self
finally:
self.done = True
current_job.reset(token)
if token:
current_job.reset(token)


class JobManager(FileConfiguration, CoreSysAttributes):
Expand Down

0 comments on commit 2ee6377

Please sign in to comment.