Skip to content

Commit a0ab3d7

Browse files
committed
fixup! remote port selection: separate wrapper into separate traitlet
1 parent 0aa766a commit a0ab3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batchspawner/batchspawner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _req_keepvars_default(self):
159159
"Must include {cmd} which will be replaced with the jupyterhub-singleuser command line."
160160
).tag(config=True)
161161

162-
batchspawner_wrapper = Unicode('batchspawner-singleuser',
162+
batchspawner_singleuser_cmd = Unicode('batchspawner-singleuser',
163163
help="A wrapper which is capable of special batchspawner setup: currently sets the port on "
164164
"the remote host. Not needed to be set under normal circumstances, unless path needs "
165165
"specification."
@@ -191,7 +191,7 @@ def parse_job_id(self, output):
191191

192192
def cmd_formatted_for_batch(self):
193193
"""The command which is substituted inside of the batch script"""
194-
return ' '.join([self.batchspawner_wrapper] + self.cmd + self.get_args())
194+
return ' '.join([self.batchspawner_singleuser_cmd] + self.cmd + self.get_args())
195195

196196
async def run_command(self, cmd, input=None, env=None):
197197
proc = await asyncio.create_subprocess_shell(cmd, env=env,

0 commit comments

Comments
 (0)