Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import global settings from environment #238

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

stevenvergenz
Copy link

When they're unset, take the ingestion config options from environment variables if available. If not, fill in hard-coded defaults like normal.

@@ -128,32 +128,76 @@ function Initialize-StoreIngestionApiGlobalVariables
# SilentlyContinue would cause it to go into the global $Error array, Ignore prevents that as well.
if (!(Get-Variable -Name SBDefaultProxyEndpoint -Scope Global -ValueOnly -ErrorAction Ignore))
{
$global:SBDefaultProxyEndpoint = $null
if ($env:SBDefaultProxyEndpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to uses Get-Variable like we do above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants