Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 7, 2023
1 parent 3bddbd9 commit 10f4b59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kubespawner/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def make_pod(
ssl_secret_mount_path:
Specifies the name of the ssl secret mount path for the pod
notebook_container_name:
The name of the notebook container in the pod
"""
Expand Down
6 changes: 4 additions & 2 deletions kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ async def get_pod_manifest(self):
ssl_secret_name=self.secret_name if self.internal_ssl else None,
ssl_secret_mount_path=self.secret_mount_path,
logger=self.log,
notebook_container_name = self.notebook_container_name,
notebook_container_name=self.notebook_container_name,
)

def get_secret_manifest(self, owner_reference):
Expand Down Expand Up @@ -2232,7 +2232,9 @@ async def poll(self):
return 1
for c in ctr_stat:
# return exit code if notebook container has terminated
notebook_container_name = pod["metadata"]["labels"].get("hub.jupyter.org/notebook_container_name", "notebook")
notebook_container_name = pod["metadata"]["labels"].get(
"hub.jupyter.org/notebook_container_name", "notebook"
)

if c["name"] == notebook_container_name:
if "terminated" in c["state"]:
Expand Down

0 comments on commit 10f4b59

Please sign in to comment.