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

Read settings from $PSScriptRoot/config/config.json? #2

Open
haxtibal opened this issue May 17, 2021 · 0 comments
Open

Read settings from $PSScriptRoot/config/config.json? #2

haxtibal opened this issue May 17, 2021 · 0 comments

Comments

@haxtibal
Copy link
Owner

We currently set https port and timeout either from command line arguments, or set them to default if not given.

The original Invoke-IcingaApiChecksRESTCall instead reads a config.json file from e.g. C:/Program Files/WindowsPowerShell/Modules/icinga-powershell-framework/config/config.json to determine those values.

This involves figuring out where $PSScriptRoot is, and introduces a dependency on another JSON interface, which I'd rather avoid. But if someone thinks evaluating config.json is important, leave a note here and I may consider adding it anyway.

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

No branches or pull requests

1 participant