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

Get-NinjaOneInstaller - Unhelpful Error message #35

Open
kcheadle opened this issue Feb 27, 2024 · 1 comment
Open

Get-NinjaOneInstaller - Unhelpful Error message #35

kcheadle opened this issue Feb 27, 2024 · 1 comment

Comments

@kcheadle
Copy link

Get-NinjaOneInstaller fails with "resultCode": "invalid_node_role" when "Advanced installer options:" is "On" (Admin > General > Settings, at the bottom).

There does not seem to be a way to pass nodeRoleID via the Get method, which seems to be a limitation on the API itself.

I would suggest the module catch this error from the API, and provide a more useful error message, such as saying the command is not compatible with Advanced Installer options on and/or suggesting using New-NinjaOneInstaller.

@homotechsual
Copy link
Owner

It's on my list to handle some of the less useful "resultCode" messages - probably starting with documentation. This is a good one to add to the list!

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

2 participants