Skip to content

Commit 10f4b59

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3bddbd9 commit 10f4b59

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

kubespawner/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def make_pod(
334334
335335
ssl_secret_mount_path:
336336
Specifies the name of the ssl secret mount path for the pod
337-
337+
338338
notebook_container_name:
339339
The name of the notebook container in the pod
340340
"""

kubespawner/spawner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ async def get_pod_manifest(self):
20532053
ssl_secret_name=self.secret_name if self.internal_ssl else None,
20542054
ssl_secret_mount_path=self.secret_mount_path,
20552055
logger=self.log,
2056-
notebook_container_name = self.notebook_container_name,
2056+
notebook_container_name=self.notebook_container_name,
20572057
)
20582058

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

22372239
if c["name"] == notebook_container_name:
22382240
if "terminated" in c["state"]:

0 commit comments

Comments
 (0)