Skip to content

Commit

Permalink
Merge pull request #98 from thedataincubator/poll_fix
Browse files Browse the repository at this point in the history
Fix poll() when pod exists but is not running
  • Loading branch information
minrk committed Nov 20, 2017
2 parents f84d575 + 790d8ec commit 672d556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def poll(self):
JupyterHub expects.
"""
data = self.pod_reflector.pods.get(self.pod_name, None)
if data is not None and self.is_pod_running(data):
if data is not None:
return None

return 1
Expand Down

0 comments on commit 672d556

Please sign in to comment.