diff --git a/binderhub/app.py b/binderhub/app.py index 32caf8261..b5134a2d5 100644 --- a/binderhub/app.py +++ b/binderhub/app.py @@ -479,7 +479,6 @@ def _image_prefix_push_default(self): def _image_prefix_pull_default(self): return self.image_prefix - build_memory_request = ByteSpecification( 0, help=""" diff --git a/binderhub/builder.py b/binderhub/builder.py index 3914a0f18..1d0903a93 100644 --- a/binderhub/builder.py +++ b/binderhub/builder.py @@ -391,7 +391,7 @@ async def get(self, provider_prefix, _unescaped_spec): # Enforces max 255 characters before image safe_build_slug = _safe_build_slug( provider.get_build_slug(), - limit=255 - max(len(image_prefix_push), len(image_prefix_pull)) + limit=255 - max(len(image_prefix_push), len(image_prefix_pull)), ) build_name = _generate_build_name( @@ -413,8 +413,12 @@ async def get(self, provider_prefix, _unescaped_spec): .lower() ) - image_push_without_tag, image_push_tag = _get_image_basename_and_tag(image_name_push) - image_pull_without_tag, image_pull_tag = _get_image_basename_and_tag(image_name_pull) + image_push_without_tag, image_push_tag = _get_image_basename_and_tag( + image_name_push + ) + image_pull_without_tag, image_pull_tag = _get_image_basename_and_tag( + image_name_pull + ) if self.settings["use_registry"]: for _ in range(3): try: