Skip to content

Commit

Permalink
Merge pull request #7499 from borremosch/add-startnew-env-prop
Browse files Browse the repository at this point in the history
Added env prop to kernel options
  • Loading branch information
blink1073 committed Nov 9, 2019
2 parents b01eeca + 892a4ff commit a441eb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/services/src/kernel/default.ts
Expand Up @@ -1668,7 +1668,7 @@ namespace Private {
let url = URLExt.join(settings.baseUrl, KERNEL_SERVICE_URL);
let init = {
method: 'POST',
body: JSON.stringify({ name: options.name })
body: JSON.stringify({ name: options.name, env: options.env })
};
let response = await ServerConnection.makeRequest(url, init, settings);
if (response.status !== 201) {
Expand Down
7 changes: 7 additions & 0 deletions packages/services/src/kernel/kernel.ts
Expand Up @@ -639,6 +639,13 @@ export namespace Kernel {
*/
name?: string;

/**
* Environment variables passed to the kernelspec (used in Enterprise Gateway)
*/
env?: {
[key: string]: string;
};

/**
* The server settings for the kernel.
*/
Expand Down

0 comments on commit a441eb9

Please sign in to comment.