Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bring Your Own Resources #205

Merged
merged 23 commits into from Jun 30, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 −4
Split
Viewing a subset of changes. View all

change the way of the initialization check

commit 183c60f6b137f13aa3608332f8c2d235505cb7eb @StrausMG StrausMG committed Jun 27, 2017
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):