Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Look for 'lifecycle_manager' stanza, not 'lifecycle_info'
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-bates committed Jul 5, 2019
1 parent 6155eb4 commit 3cf6acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote_kernel_provider/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get_lifecycle_info(self, kernel_spec):
This will be in the `process_proxy` stanza of the metadata.
"""
legacy_detected = False
lifecycle_info = kernel_spec.metadata.get('lifecycle_info', None)
lifecycle_info = kernel_spec.metadata.get('lifecycle_manager', None)
if lifecycle_info is None:
lifecycle_info = kernel_spec.metadata.get('process_proxy', None)
if lifecycle_info:
Expand All @@ -75,7 +75,7 @@ def _get_lifecycle_info(self, kernel_spec):

if legacy_detected:
self.log.warn("Legacy kernelspec detected with at '{resource_dir}'. Ensure the contents of "
"'{kernel_json}' contain a 'lifecycle_info' stanza within 'metadata' with field "
"'{kernel_json}' contain a 'lifecycle_manager' stanza within 'metadata' with field "
"class_name in '{expected_classes}'".
format(resource_dir=kernel_spec.resource_dir, kernel_json=self.kernel_file,
expected_classes=self.lifecycle_manager_classes))
Expand Down

0 comments on commit 3cf6acd

Please sign in to comment.