Skip to content

Commit

Permalink
Refactoring KG_WHITELIST to KG_ENV_WHITELIST
Browse files Browse the repository at this point in the history
To better align with Jupyter Kernel Gateway, this commit will change from
KG_WHITELIST to KG_ENV_WHITELIST and use comma as a delimeter instead of a colon.
  • Loading branch information
ricedavida committed Jun 6, 2017
1 parent 38a4c71 commit c06c404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nb2kg/nb2kg/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def start_kernel(self, kernel_id=None, path=None, **kwargs):
method='POST',
body=json_encode({
'name': kernel_name,
'env': {k:v for (k,v) in dict(os.environ).items() if k.startswith('KERNEL_') or k in os.environ['KG_WHITELIST'].split(":")}
'env': {k:v for (k,v) in dict(os.environ).items() if k.startswith('KERNEL_') or k in os.environ['KG_ENV_WHITELIST'].split(",")}
})
)
kernel = json_decode(response.body)
Expand Down

0 comments on commit c06c404

Please sign in to comment.