Permalink
Browse files

change the way of the initialization check

  • Loading branch information...
1 parent 08807ea commit 183c60f6b137f13aa3608332f8c2d235505cb7eb @StrausMG StrausMG committed Jun 27, 2017
Showing with 1 addition and 4 deletions.
  1. +1 −4 everware/byor_spawner.py
View
@@ -9,16 +9,13 @@
class ByorDockerSpawner(CustomDockerSpawner):
-
- _options_form_is_initialized = False
def __init__(self, **kwargs):
CustomDockerSpawner.__init__(self, **kwargs)
self._byor_client = None
- if not self._options_form_is_initialized:
+ if self.options_form == self._options_form_default():
with open(pjoin(self.config['JupyterHub']['template_paths'][0],
'_byor_options_form.html')) as form:
ByorDockerSpawner.options_form = form.read()
- ByorDockerSpawner._options_form_is_initialized = True
@property
def client(self):

0 comments on commit 183c60f

Please sign in to comment.